Arrays, data and combining

Blitz3D Forums/Blitz3D Beginners Area/Arrays, data and combining

You can't reference a global "tile1" with tile+1. All this will give you is the value of "tile", added to 1.

Instead of using tile1, tile2, etc, use an array:

dim tile(3);this dimensions the array
tile(1)=load_whatever
tile(2)=ditto
tile(3)=you_get_the_picture

For plop=1 To 7 
Read levelData 
u.tile = New tile 
u\entity = CopyEntity(tile(levelData)) 
Next 

Data 1,3,1,2,1,3,1