i made this events to go through all the objects in hidden objects type game to count all the yet unfound objects, set the array size and fill each cell with object UID.
everything works except filling the cells, it cant insert any value in it, even just "1" its all "0"s
Develop games in your browser. Powerful, performant & highly capable.
Try: Set value at (objectsLeft-1,0) to 1
Arrays have zero based Index. If you set the size of an Array to 3 you have Index 0,1,2.
And I wouldn't use set size in a loop, I would use push in an empty Array (width=0, Height=1, Depth=1)
Try: Set value at (objectsLeft-1,0) to 1 Arrays have zero based Index. If you set the size of an Array to 3 you have Index 0,1,2. And I wouldn't use set size in a loop, I would use push in an empty Array (width=0, Height=1, Depth=1)
it worked perfectly, thanks!