Function EnviromentTileLoader()
set dir "Media\Enviroment Tiles"
delete file "Thumbs.db"
Perform Checklist for files
TotalLoadedTiles = Checklist Quantity()
for x = 3 to TotalLoadedTiles
TileName$ = Checklist String$(x)
load image TileName$,Tiles,1
sprite Tiles,1024,b + 73,Tiles
inc b,80
hide sprite Tiles
inc Tiles,1
next x
Endfunction
there is a function i used when i was working on a 2d editor.
set dir "Media\Enviroment Tiles"
delete file "Thumbs.db"
Perform Checklist for files
TotalLoadedTiles = Checklist Quantity()
for x = 3 to TotalLoadedTiles
TileName$ = Checklist String$(x)
load image TileName$,Tiles,1
is what your looking for you set the directory first, always delete thumbs.db first since this will return in the quantity even tough it is not a image its windows thumb nail viewer file and you don't want that.
Then check how many files are in that directory and store the total then use a array to load up the images.
Your signature has been erased by a mod -- please resize to under 600x120...