0,1
1,0
0,0
If that's an array, how can i clear Y axis without touching the X axis ?
or clear the X axis without touching the Y axis ?
i want X axis to have only one "1" at a time and same for Y axis.
so far i can only clear the whole thing. but not just one of the axis.
This will clear X axis at Y=3
For "n" from 0 to (Array.width-1) : Array Set 0 at (X=loopindex, Y=3)
This will clear Y axis at X=3
For "n" from 0 to (Array.height-1) : Array Set 0 at (X=3, Y=loopindex)
This will clear X axis at Y=3 For "n" from 0 to (Array.width-1) : Array Set 0 at (X=loopindex, Y=3) This will clear Y axis at X=3 For "n" from 0 to (Array.height-1) : Array Set 0 at (X=3, Y=loopindex)
Is not working. Obviously im doing something wrong. Trying to figure it out.
Thx for the info. ill try making it work.
Develop games in your browser. Powerful, performant & highly capable.
Finally i understand how arrays work. much like battleship board.
And i used your help to make it work.
What i really needed was to clear x axis at y=0 and for the other side clear x axis at y=1.
Thx for the help.