I’m working on a simple game. It will be turn based with some complex animation sequences. I was wondering the best way to handle multiple animations in a row, instead of setting and unsetting event listeners?
Currently my code is filled with if/then and then setting and unsetting timere and event listeners for simple animations. I’n impactJs there is a state machine and in Jquery you can stack animations and functions on top of themselves, not sure if this is possible in Corona. I come from the JS world, so I always fall back to that way of thinking.
Example of actions:
Hero run towards Villain
When hero collides show attack animation
Show Villain hurt animation
Hero End attach animation
Hero turns around
Hero Runs to start position
Villain shows recover animation
Both set to idle animation