ImageTile manipulation

BlitzMax Forums/BlitzMax Beginners Area/ImageTile manipulation

How does leveldata[x,y] equal a frame number?
DrawImage(fiftytiles,x*50,y*50,leveldata[x,y])


It doesn't equal a framenumber, but represents a grid that contains the relative postition for each tile.

Then the position in the array holds the framenumber of tile that should be drawn at that place.

But the best way of doing this greatly depends on exactly what it is that you're trying to accomplish and what kind of game you're writing.

If you only ever have 4 tiles in a row, remove one from the middle, and have the others slide over & see a new one appear, (as I now realize you might be trying to do), things would be different.