Quote:
Originally Posted by enonod
Does the data item in the array permit an x,y coord as one entry?
|
No, as it's a single dimension array but you could use
arr(0) = x & "," &y
but it's more efficient just to use individual elements. You could use a structure, which is actually an array, to make it easier.
Dim Type(x, y, z, name)Spritedata
....
Dim Spritedata(4) ' make a new array
... ' set it up
Sprite.DataArray = Spritedata() ' assign it to a Sprite