@Yann ok, this is the easiest bar of the array (the learning), ok the questions how can i set them on construct2 here is the problem .
sometimes i have global variable = 0 and sprite frame number,and my array is : at(global variable,sprite frame number)=0 ---> action = sprite destroy
**this can unlimited numbers of arrays that has value = 0...
this is diffrant between
array value = 0 ---> action sprite destroy
but the problem in 2nd one how can i store the things i want on it , for example i can make array with at(0,global variable) = 0 or
at(0,sprite fram number)= 0 , many stuffs like this...
but i found , the easiest way to store array values by doing like :
on start of layout ---> array (0,1) = 1
array (0,2) = 2
array (0,3) = 3
array (1,1) = 4
then in next event we do like this :
if array current value = 1 , spawn enemy1
if array current value = 2 , spawn boss1
if array current value = 2 , spawn enemy2
if array current value = 2 , spawn boss2
**the problem i couldn't get it on this way is how can i combine the array with the global variables i don't know the expression...
in all that stuffs there are more complex stuffs , and im having fun learning them.
the good point on arrays that if you want your game to be good you must have at least one array ... mostly one array is enough you can make 999999999999999 stuffs with it but some use more for organizing only.