Ultimate Amiga

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: syntax question for a load command  (Read 2482 times)

0 Members and 2 Guests are viewing this topic.

MichaelVParent

  • A600
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 62
syntax question for a load command
« on: May 26, 2008, 05:17:59 AM »

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)
Logged

SamuraiCrow

  • compile-time wierdo
  • Forum Mod
  • A1200
  • *****
  • Karma: 5
  • Offline Offline
  • Gender: Male
  • Posts: 946
  • Compile-time wierdo
Re: syntax question for a load command
« Reply #1 on: May 26, 2008, 04:19:21 PM »

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.
Logged

MichaelVParent

  • A600
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 62
Re: syntax question for a load command
« Reply #2 on: May 26, 2008, 05:45:55 PM »

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.
Logged

Lonewolf10

  • AMOS Extensions Developer
  • AMOS Dev
  • A2000
  • *****
  • Karma: 3
  • Offline Offline
  • Gender: Male
  • Posts: 618
    • http://www.aliensrcooluk.com
Re: syntax question for a load command
« Reply #3 on: May 29, 2008, 09:05:18 PM »


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

Logged

MichaelVParent

  • A600
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 62
Re: syntax question for a load command
« Reply #4 on: May 30, 2008, 03:39:12 AM »

thats wonderfyllt simple and works great!  Thanks much.
Logged
Pages: [1]   Go Up
 

TinyPortal 2.2.2 © 2005-2022