View Single Post
  #29 (permalink)  
Old 07-03-2009, 10:08 AM
agraham's Avatar
agraham agraham is offline
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 3,839
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

Quote:
Originally Posted by enonod View Post
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
__________________
Sorry, but I don't answer questions by PM or email.
Please post your queries in the forum.
Reply With Quote