Can I make this work?
"Animation 1" ? "Animation 2" : "Animation 1"
in an event to change animation.
it seems to work that if Animation 1, it will switch to 2, but not back to 1.
Develop games in your browser. Powerful, performant & highly capable.
Sprite set animation to (Sprite.AnimationName="Animation 1" ? "Animation 2" : "Animation 1")
.
This should work. If it doesn't, there must be some problem with your code. Maybe this event is executed on every tick and animation constantly changes from 1 to 2 and back.
Thanks I will try that out, I took a different route but this will be handy in the future