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.