Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / Proper Use of Pack$=Get Dir$() command?

Author
Message
Duplex
User Banned
Posted: 24th Jun 2007 19:24
How do I get it so instead of righting the whole file path out each time how do I get it so it goes straight to the projext folder, I know it has something to do with the command:



But cant get it working.


Please Help,
Duplex

Duplex Creations Has now teamed up with X games.
X games Website
TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 24th Jun 2007 20:46


You can create string variables for any directories you use. To then for example load an image, you would use:

Load Image ImageDir$+"Filename.jpg",1

and to load an object:

Load Object ObjectDir$+"Enemy01.x",1

TDK_Man

Duplex
User Banned
Posted: 24th Jun 2007 21:08
Thanks, That helped alot!


Duplex

Duplex Creations Has now teamed up withX games.
Urban Pack WIP

Login to post a reply

Server time is: 2024-11-25 15:23:53
Your offset time is: 2024-11-25 15:23:53