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
A playable character sprite has five different costume animations. The costume is currently determined by a global variable. So far the only way I can get the correct animations to play is by adding individual "set animation" events. I know there's a much more efficient way of doing this but can't get it to work.
Develop games in your browser. Powerful, performant & highly capable.
You can do something like this:
Play animation "Walk_"&Costume
Play animation "Idle_"&Costume
Of course, you should name the animations properly for this to work.
Many thanks dop2000, this is really helpful.