Hundreds of features to explore
Games made in Construct
Your questions answered
Trusted by schools and universities worldwide
Free education resources to use in the classroom
Students do not need accounts with us
What we believe
We are in this together
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
How do I bulk add value into array. ie : tableX[3,5,7,8,9] ? Many thanks!
You could use the function object to make a function which does it taking parameters.
That's a good suggestion. You could also have a Text variable "1,3 5,7" or whatever and use tokenat() in a loop to extract the numbers directly in your code, or in fact pass it to a function as a single param. To pass a bunch of numbers (or params in general) to a Function individually is cumbersome IMO.
Develop games in your browser. Powerful, performant & highly capable.
Load from JSON string. It's ugly, but extensible.
"{""c2array"":true,""size"":[5,1,1],""data"":[[[3]],[[5]],[[7]],[[8]],[[9]]]}"
I'd go for something like this
[attachment=0:3qnfqro1][/attachment:3qnfqro1]