Working on a grid-based puzzle with a 3x3 layout. Each cell contains the numbers 1-9, and when the player clicks on a number it increases. The goal is to set a certain pattern.
Brief overview of how I built the events/actions:
* Click a grid space to increase its instance variable by one
* Every tick, for each XY element, set the CurX/CurY values to the instance variables. Also set the displayed text to the same.
* For testing purposes, switch layouts and see a text readout of the cells.
I can get this to work just fine, but when I return to the original layout, the array always resets. I've tried different solutions but each one breaks the setup in some way, usually setting the entire array to output a single number.
I've read through the manual and tutorial on arrays, but there's obviously something I'm missing with either object instances or arrays, because this is just not working out. Test .capx file included below. Any help would be appreciated!
dl.dropbox.com/u/564834/array-tests.capx