If i have a lot of tiles which is the best to use?
Is it fater to have one image with an index to each image or have each tile as a different image (possibly in an array to save on all the variables)?
As long as all your tiles are the same size, use LoadAnimImage. There's probably a very slight overhead involved in indexing the tile images but having that indexing is very useful, especially for map editors etc. If you have all the tiles as separate images stored in an array then you'll get a slight speed overhead anyway, as you'll have to lookup (index) the array to get the required image handle.
DrawImageRect and two simple offset calculations do the job as well. The nag I have with LoadAnimeImage is that you need to know how many images you'll load. When you load a big image then you simply load whatever there is to load, the drawing will then be clipped to the imagedimensions.
But it's all personal taste ofcourse..
Ok, thanks. I guess ill be sticking with AnimImage.
If you have BMax I made a new function that is way faster the the standard BRL function.
http://www.blitzbasic.com/Community/posts.php?topic=51647