Hello i followed a progressivelevelselection capx tutorial from the tutorial website but anytime i go to the next level it's like the arrays does not save as it normally should. Please what am i doing wrong here is my capx i think it has to do with the arrays dropbox.com/s/z2x2tfmngzny9s7/level%20select%201.capx
It seems you are using a 2 dimensions array.
Nevertheless, you never set the dimension of your array to accept this.
At some point, at the very beginning of your game, you need to set the size of your LevelArray object to be width 12 (as you have 12 icons of levels) and height 2 (as you have the number of stars sitting in LevelArray.At(X,0) and the status in LevelArray.At(X,1)).
You also need to modify event 4 in "Global" as it is setting a value in a one dimension array instead of a 2 dimensions array.
Modify the condition :
Modify the action :
LevelArray: Set value at (SelectedLevel, 0) to CollectedStar
This should help making everything related to your array work as long as you are in your game's execution.
Capx corrected in R266
Develop games in your browser. Powerful, performant & highly capable.
Thank you very much
Hello i am unable to open the capx because my version is 265 and i don't have much data at the moment to update, how can i open this with 265
you can unzip a capx file and edit the .caproj file - and change saved with version on line 11 to say 26500 instead of 26600
obviously this doesn't work if the file uses new features not found in the older version...
I made the edit for you - you can get it here:
Or you update to the actual stable r267 - scirra.com/construct2/releases/r267/download - that is the latest stable release available and will read projects made in r266 without problem.
Thank You all