Main Menu

syntax question for a load command

Started by MichaelVParent, 26 May, 2008, 06:17 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

MichaelVParent

Does anyone know what the syntax would be if I wanted to load images from the same folder that the program is in...so that I could distribute the game in a folder with the images and it would work fine for anyones system?

thanks,
Holymonkey (Mike)

SamuraiCrow

I don't think there is a special trick.  You just don't change directories within your program and it will be in the program directory by default.

MichaelVParent

Thanks much. :)  Seems to have worked.. I simply have:

Load IFF "example.iff",0

and it loads just fine.  At some point i'll try running everything from a different drawer to make sure, but I'm assuming it will work fine.

Lonewolf10


Yes, SamuraiCrow is correct.

As long as you don't change directories by using the DIR$ (or similar) commands it will work. You can store images in a sub-folder and it will still work ok.


Your program location: Dir1/Program

Misc file location: Dir1/Stats

Image location: Dir1/Images/Title.Iff



Load Iff "Images/Title.iff",0
Bload "Stats",10


It may be easier storing things in sub-drawers (directories if you prefer) if you have lots of files.


Regards,
Lonewolf10


MichaelVParent

thats wonderfyllt simple and works great!  Thanks much.