Hi There,
I have a series of buttons that allow the user to switch between layers. I store the target layer numbers in instance variables on the buttons.
Sometimes, I also switch between layers through events.
I would like to store the layer numbers in global variables like "GAMEOVER_LAYER = 1", instead of just using the raw layers numbers all over the code.
However, I don't understand how to set my button instance variables to be equal to the global variables I've created. When i type the name of the global variable into the instance variable assignment box, when I hit enter, it resets the value to 0. Do I need to use some kind of prefix on the variable name? Is it even possible?
Thanks,
Peter