I’ve recently started to use MakeCode arcade, Im trying to make animations, but none ever work if my character is still, i’m not sure what to do since I haven’t heard this situation anywhere on the internet. Also, i’m trying to make a boss fight and make the sword do proper damage, any help? How do I fix the sword animation?
You have a loop that stops all animations when the left and right buttons aren’t held. This means that the sword animation also stops! What people usually do is make the sword a separate sprite that gets teleported to the correct position in an On Game Update loop. That way, you can check for if the sword is hitting any enemies independent of the player. This would also fix your animation issue!
Oh I see, but i’m not sure how to necessarily do what you’ve recommended because by recently started I mean a week or two ago, is it possible you can tell me which lines of code are wrong and what I should replace it with? I also changed it but now my character keeps spinning when a is pressed. Also, i’m using the projectile that comes out from my character when a is pressed to hit enemies. Why is my sprite going crazy?
Nevermind, I finished it all, thanks!