Okay, so I've got this array:
WayPointList:Int[1536,2560,1,0,0,0]
It's supposed to be a list of waypoints and the speed at which the screen should scroll from the old waypoint to the next one. I.E. this format:
[x,y,speed,x,y,speed... etc.]
Now I'm trying to figure out how arrays work in Blitz. This documentation is terrible. It explains how to use EachIn to loop through an entire array, but what's the command to just read one element from the array?
In other words, how would I go about doing:
camera.x = (first item from the array WayPointList)
camera.y = (second item from the array WayPointList)
camera.speed = (third item from the array WayPointList)
Also, are these arrays one-based or zero-based? (I.E. Is the first item in the array refered to by the number 0 or 1?)
Thanks.
WayPointList:Int[1536,2560,1,0,0,0]
It's supposed to be a list of waypoints and the speed at which the screen should scroll from the old waypoint to the next one. I.E. this format:
[x,y,speed,x,y,speed... etc.]
Now I'm trying to figure out how arrays work in Blitz. This documentation is terrible. It explains how to use EachIn to loop through an entire array, but what's the command to just read one element from the array?
In other words, how would I go about doing:
camera.x = (first item from the array WayPointList)
camera.y = (second item from the array WayPointList)
camera.speed = (third item from the array WayPointList)
Also, are these arrays one-based or zero-based? (I.E. Is the first item in the array refered to by the number 0 or 1?)
Thanks.