I have a set of 50 or so images organised in 10 layouts with 5 animation frames shown as separate images on each layout.
I want to flash, increase the scale and animate the specific sprite that is tapped / clicked by the user.
I have already done it by repeating the same set of events / actions on each event sheet, but thats making the whole project bulky . I wanted to use includes and functions so I can write on first event sheet and repeat that on each of the next event sheets.
but when I did that all of the 5 images shown on the screen start flashing, scaling and animating.
Here is what I have tried.
I set an instance variable "instanceIndex" for each image sprite and gave them numbers 1, through 5.
On the individual event sheets, I save the value of "InstanceIndex" to a global variable "selectedInstance" and then call a function passing it the parameter sprite.InstanceIndex.
However the values that I set in "InstanceIndex" are not getting saved to global variable (i also showed it as the text in a text box). The text box and "SelectedInstance" keep getting set to "0"..
What may I be doing wrong ?