Hello again, sry i have not been active.
Ok, so this has been VERY annoying for a while and i need this fixed.
can we have a “flip” for the sprites, and if not can we at least have it in the art thing, because i have to select each part and flip it as of now and its very annoying. a “flip” button should not effect the code but make it SOO much easier to do animations.
also i kinda need help w/ a attacking anim, so i want it so if you press (a) then it runs the full animations, how? heres the link THE LINK
plz don’t question the name, i was making it to help a friend, but i made fun of him by naming it exactly what he said.
Well, if you are using the old animation API, (which I personally am fond of) you can copy the function code for another animation but flip the image. There is a function in the image section under advanced.
Which results in this:
BTW, I love the sword animation!
But yes, I think they should add a flip button in the sprite/image editor. That would save memory on the Arcade.
The right sword animation does work though. I don’t understand what you are saying, but if you don’t want the animation to loop, you are going to have to use the new API.
This might be a bug but whenever I try to copy and paste a block the editor freezes and I have to force reload the page in your game. I am editing it right now.
Maybe it’s because I have more than one tab of makecode arcade open now??
Yes but no. your design does work, but can you also make it so if the (a) button is pressed it runs the whole animation even if (a) is let go?
Thanks
-Blobiy
I think it is because my code - it waits 315 milliseconds (the time of your animation) and resets it back to normal. I think maybe the 315 isn’t the most accurate?
This is a limitation of the “attach animation” blocks; they keep the current frame in between runs so they don’t reset each time. I’d recommend using the “play animation” blocks instead, they will always start from the beginning. You could also recreate the animation each time which should also fix the issue.
So that means you would have to switch to the new animation api.
But I don’t think any of us want to move the animation frames into a animation block.
Unless you switched to JavaScript mode and copied the arrays themselves, because I think animation blocks are just an array of images right? Correct me if I’m wrong.
Correct! You can just move the frames into an array and use that. You can also use that trick to flip animations: first use the animation editor, assign it to a variable, clone all the images into a new array and flip them