Hi!
I'm having some dificulties in create a 2D array.
I need something like this:
Product - Price - Quantity
ball - 10 - 2
sword - 3 - 5
How can i insert this in an array ?
From : https://www.scirra.com/manual/108/array
Set at XY
Write a value at a position in the array. Indices are zero-based. Writing to values outside the array has no effect. If Set at X is used, the Y and Z indices are 0. If Set at XY is used, the Z index is 0.
So for ball
Set at x = 0, y =0, value = "ball"
Set at x= 0, y= 1, value = 10
...
Develop games in your browser. Powerful, performant & highly capable.
Ok, thanks