I wanna to save the mouse X and Y coordinates in a 2 dimension array many times but I want to keep the previously coordinates too in this array.
I have a 2 dimension array (1,2,1) at the start.
0 (<- for X coordinate of mouse position)
0 (<- for Y coordinate of mouse position)
When I click by mouse it must record in the array the actually XY coordinates
If I click again it need to keep these values and record the new ones in a new column
and so on...
322, 102, 025, 957 ... (X coordinates of mouse)
568, 878, 100, 378 ... (Y coordinates of mouse)
(1.) , (2.) , (3.) , (4.) ... (at first click, second, third etc...)
Many thanks for the solution!
Develop games in your browser. Powerful, performant & highly capable.