I'm trying to use a list to build a 3D level from tiles, and I'm having some problems. This is a stripped version of the code I'm using:
=============================
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
=============================
What I try to do is to read a number (which works), and combine that number with 'tile' so that it'll correspond with earlier defined globals 'tile1', 'tile2' and 'tile3'. This doesn't work. When I try it this way, I get MAV's and with other write-ups it even opens requesters to open other blitz files while compiling!! So my questions are:
* How can I access a single variable by combining multiple pieces of it's name?
* How can I navigate through data or arrays without having to define it's exact length? In Director Lingo you have lists (arrays), and you can see how long they are by requesting list.count, and you can add to them by add list,value. Is this possible in Blitz?
=============================
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
=============================
What I try to do is to read a number (which works), and combine that number with 'tile' so that it'll correspond with earlier defined globals 'tile1', 'tile2' and 'tile3'. This doesn't work. When I try it this way, I get MAV's and with other write-ups it even opens requesters to open other blitz files while compiling!! So my questions are:
* How can I access a single variable by combining multiple pieces of it's name?
* How can I navigate through data or arrays without having to define it's exact length? In Director Lingo you have lists (arrays), and you can see how long they are by requesting list.count, and you can add to them by add list,value. Is this possible in Blitz?