[SOLVED] How to dynamically change Default_animation?

If my 2D character needs to dynamically change Default_animation, how should I do it?

You can use either:

sprite.play_flipbook("#sprite", "animation")

or alternatively:

msg.post("#sprite", "play_animation", {id = hash("animation")})
5 Likes

thank you very much!