Hi guys,
I have an array like this
0, 1, 1, 0, 1
1, 0, 0, 0, 0
0, 1, 1, 0, 0
How do I get the total number of rows (3, 1, 2)
Then give the three values to three different text boxes?
Develop games in your browser. Powerful, performant & highly capable.
Considering your array has size (width=3, height=5):
For "w"=0 to 2 local variable sum=0 For "h"=0 to 4 Add (array.at(loopindex("w"), loopindex("h"))) to sum System pick Nth instance, object:TextBox, instance: loopindex("w") TextBox set text to str(sum)
OK,I got it,Thanks for your help.