Tuesday, February 20, 2018

Day 13

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.

1 comment:

Animate Lines and Ripple effect

Screenshot from Animate CC Animated GIF (Button does not work) Adobe Flash Player Version