You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The sprite is playing a loop animation, and it will play a attack animation then back to loop animation. In this situation, event SPRITE_ANIMATION_COMPLETE will triggered immediately when attack triggered, so attack animation won't be displayed.
Thank you for submitting this feature request. We have implemented this and the feature has been pushed to the master branch. It will be part of the next release. If you get time to build and test it for yourself we would appreciate that.
Version
Description
The sprite is playing a
loop
animation, and it will play aattack
animation then back toloop
animation. In this situation, eventSPRITE_ANIMATION_COMPLETE
will triggered immediately whenattack
triggered, soattack
animation won't be displayed.pseudo code:
The reason is because when loading animation it will check if it is playing:
It should be a different event like
animation_stop
but notanimation_completed
in my opinion. I think it is a bit unclear.Current workaround is to set
isPlaying = false
before playing animation.Or I missed anything?
Example Test Code
Additional Information
The text was updated successfully, but these errors were encountered: