Today I finally did fixed the bug and got my attack to work.
I added an if statemant that said that it only resets when the image index (current frame) is bigger than 5 (as my animation only has 4 frames and it starts at 0) then to go to the idle state. And if not then to keep it in the attack_state.
Today I learned how to count the current frame and use that to wait until an animation is over to switch states.
Tomorrow I will probably change some sprites or add something new.
Tuesday, February 20, 2018
Subscribe to:
Post Comments (Atom)
Animate Lines and Ripple effect
Screenshot from Animate CC Animated GIF (Button does not work) Adobe Flash Player Version
-
In this game, you have to survive by collecting resources, making sure you have rest, and eat and drink water. I will be specifically talkin...
-
Screenshot from Animate CC Animated GIF (Button does not work) Adobe Flash Player Version
-
Screenshot from Animate CC Animated GIF (Button does not work) Adobe Flash Player Version

ahhhhhhhhhhhh
ReplyDelete