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
I want to select a sprite animation out of 4 different ones by clicking on 4 different icons. the selection will be passed to a next layout. I can't use a global variable because there's also a reset global variables action before going to the next layout. So I tried with an income variable but it doesn't work.
Develop games in your browser. Powerful, performant & highly capable.
You can set the animation before resetting global variables.
Or use a static local variable in a group, they are not reset.
Or an instance variable on a global object, for example an array.
Or store it in a dictionary or array.