ahhh yeah, actually i was kinda looking through the darkbasic commands last night and i had seen those commands. ill give a work with those and see what i can manage to come up with. seems im thinking along the right lines, lets just see if i can actually apply these. thanks for all your time TDK!
EDIT: ok, this definitely is all coming together and makes much better sense now. now im on to something. i have one question real quick though. you said i could loop through the checklist string$ array and check if the last 4 characters are valid image extensions right? now how would i be able to make it distinguish which extensions are image extensions and ignore anything else? or is this an obvious question?
Here's what i have soo far, works nicely for the moment based on the info you provided me.
`basic screen setup
set display mode 1280,1024,32
sync on : sync rate 0
hide mouse
`variables
mouse_cursor = 1
cursor_image_1 = 5000
image_directory$ = "images/"
`load new mouse image and change to default images directory
load image "mouse icons/mouse_arrow.bmp", cursor_image_1
`set the graphics directory and load tiles
set dir image_directory$
perform checklist for files
number_of_items = checklist quantity()
print "Number of tiles in images directory = ";number_of_items - 2
`loop for checklist string
for list_of_tiles = 1 to number_of_items
print checklist string$(list_of_tiles)
next list_of_tiles
`main program loop
do
sprite mouse_cursor,mousex(),mousey(),cursor_image_1
sync
loop