Hundreds of features to explore
Games made in Construct
Your questions answered
Trusted by schools and universities worldwide
Free education resources to use in the classroom
Students do not need accounts with us
What we believe
We are in this together
World class complete documentation
Official and community submitted guides
Learn and share with other game developers
Upload and play games from the Construct community
Game development stories & opinions
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