I am using the update event to send post messages to change the animation based on input.My problem is as follow:
Note: all my animation are imported inside an Atlas component
I have a Stand animation. I am basically checking in the update event, that if the velocity.x equals to zero, then use the stand animation. I have an animation attack, and whenever i trigger it using an input button, the animation finish in an instant, because the character is standing and the standing animation condition applies.
*How can i make sure that each animation is executed till it finishes?
*I am using message posting to play the animation. Can i use go.animate to animate something from an atlas. If yes, then how and would using delays in this case would be correct?
*To implement my logic for several animation overlapping, is my logic correct? i.e. update the animation in the from the update event for each frame.
I understand that my left and right animation are working fine, because they stop once i release the key, but for an attack, you only have to press the button once. I tried catching the if message_id == hash("animation_done")
but this event never hits on the on_message event.