Hi i'm sorry i'm sure this has an answer in here somewhere but i can't find it. So I used to use VB and when you call a loop e.g.
For Count = 1 to 10
Print(Count)
Next
That would print 1 to 10, my question is how do I call on the value of the loop (as in what number the loop is)
What i am trying to do is lay out a grid of objects according to X and Y values set in an array
I've got as far as 'For "Setup" from 1 to Board.Width' Then i create the object but when i try to set a position i'm wanting to set it as so
1st object (X = (1,1) in the array) (Y = (1, 2) in the array
2nd object (X = (2,1) and Y = 2,2
So in VB i would simply put
X = (Setup , 1) Y = (Setup, 2)
and that would go through the array along the X axis setting the two values
So in basic English I want:
For Setup = 1 to array.width
Create object on layer 1 at (X = Setup, 1) (Y = Setup, 2)
Next
I hope that made sense