You can do similar like this:
So I tried something based of of this, but nothing I try seem to work. Every time I switch between layouts and back to the one the sprite is on, I'm getting same result as before. Here's the current code so far:
Global String: cur_anim =
System > On start of Layout > LocalStorage > Check Item "cur_anim" exists
Local Storage > On Item "cur_anim" exists > Get Item "cur_anim"
Local Storage > On Item "cur_anim" missing > Sprite > Stop animation
Local Storage > On Item "cur_anim" get > Sprite > Set animation to LocalStorage.Item Value (play from beginning)
Sprite > is "NewAnimation" playing > set item "cur_anim" to Sprite.AnimationName
Is there anything I' doing wrong here?