Hello World,
So I have to use an array for my score values and this is how I plan to set it up:
50 levels=50 array width
3 difficulty levels=3 array height
3 global variables: "Difficulty", "LevelNumber", "Score"
Event: on end of layout Set value at(LevelNumber, Difficulty) to Score
So what I have achieved there(unless I am mistaken) is that every time the layout ends the game checks to see what level you are on, what difficulty you have chosen, and then saves the current score in the appropiate place(level&difficulty).
I have 2 problems so far:
1. Is there any way to make it so that the score will be saved only if it's value is higher then what is already in that slot in the array?
2. I am confused by the following quote from the manual:
"Note like the rest of Construct 2, indices are zero-based, so the first element is at 0. In this example, Array.At(0, 0) would return the first number in the grid."
What exactly does that mean? If I put 3 for my array height, does that mean I have 4 columns, one for 0, one for 1, one for 2 and one for 3? And where exactly do I store my values... cause I would like level 1 to be stored at x 1 in the array. So if you play level 1 on easy difficulty(lowest possible) then the value would be store at x:1 and y:1 in the array; would all 50 levels fit then if I don't use the 0,0 thing?
Sigh, I am totally confused by this part, guess that's obvious.....
Please help, thank you.