Hundreds of features to explore
Games made in Construct
Your questions answered
Popular & trusted by schools and Universities world-wide
Students do not need accounts with us
Our educational partners
Free education resources to use in the classroom
World class complete documentation
Official and community submitted guides
Learn and share with other game developers
Upload and play games from the Construct community
Game development stories & opinions
I'm just trying to add row of fields when you hit the space bar.
(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..