I'm just trying to add row of fields when you hit the space bar.
drive.google.com/open
(run in debug mode to look at array data)
:(
I don't understand the Push/Insert dialog box. Why does it only give an option to add 1 value? Shouldn't it offer to add a value for each of the fields? and when I select the Y axis, it also only offers one value to add..but not where?? I have 4 Ys! VERY CONFUSING..
You're pushing counter into the array which is 2, but its position is 1. counter,1 counter,2 etc don't exist, you need counter-1,1 counter-1,2 i guess. Other than that you had the right idea.
— thank you!
do you know if you need to make your own counter like that or is there a built-in way to reference the new entry you just pushed/popped/inserted into the array?
The width of the array is the amount of X. Since you are pushing onto the back of X then last pushed is array.width-1 (because width includes 0, i.e. when you have only one array entry at x=0 then width is 1)
Develop games in your browser. Powerful, performant & highly capable.
yeah base zero, always a thing.. got it, thanks..
—