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.

DarkBASIC Professional Discussion / Is there a way to?

Author
Message
Learning5613
12
Years of Service
User Offline
Joined: 28th Aug 2013
Location: Saint George, Utah
Posted: 29th Aug 2013 04:29
Just wondered is there a way to import sounds and graphics while programming? And also where should the sound and graphic files are kept in order to perform such task while programming? Just curious though.

Richard L. West
Burning Feet Man
18
Years of Service
User Offline
Joined: 4th Jan 2008
Location: Sydney, Australia
Posted: 29th Aug 2013 08:02
Could you explain your workflow further? I don't understand exactly what it is that you're trying to achieve.

Help build an online DarkBASIC Professional help archive.
DarkBasic Help Wikia
Libervurto
20
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 29th Aug 2013 14:04
There is always a way... the first step is to give your threads meaningful titles.



Formerly OBese87.
mr Handy
18
Years of Service
User Offline
Joined: 7th Sep 2007
Location: out of TGC
Posted: 29th Aug 2013 14:19 Edited at: 29th Aug 2013 20:14
New to DarkBASIC Professional programming? Fear not for there are people on-hand to help you out in here. Please visit our Newcomers DBPro Corner!

There, you should start by reading the following topics:
Beginners Guide to DBPro
Tutorials Thread
"Noob" Questions - PLEASE READ!
Forum Rules and Newcomers F.A.Qs + Helpful Hints! Read This BEFORE Posting!

Good luck!

TheComet
18
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 29th Aug 2013 17:55
Place your media in the same folder your project is and use commands like load music, load object, load stuff to load it.

TheComet

Libervurto
20
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 29th Aug 2013 20:12 Edited at: 29th Aug 2013 20:13
Quote: "Just wondered is there a way to import sounds and graphics? Where should the sound and graphic files be kept in order to perform said task?"

You don't need to say that you are programming, we will assume that you are programming.

Have you gotten to grips with the help files yet? Try opening up help, click on INDEX and that will bring up a long list of all the commands. Search the page (usually CTRL+f) for the commands thecomet mentioned to find out more about them.

Although placing media files in the same directory as your program is the easiest way to access them, it's not the only way. You can specify absolute paths (starting at the root of your file system), eg:

"C:/Program Files (x86)/The Game Creators/Dark Basic Pro Free/Dark Basic Pro/Media/Bitmaps/foliage.bmp"

or relative paths (starting from the location of the current directory), eg:

"../../Media/Bitmaps/foliage.bmp"

or if the media is in the current directory you just need the name:
"foliage.bmp"

The current directory is set to the folder the program is located in, by default, but you can change this with the SET DIR command; this is a useful command if you have lots of media to load from a sub-directory or from outside your project folder.



Formerly OBese87.
Learning5613
12
Years of Service
User Offline
Joined: 28th Aug 2013
Location: Saint George, Utah
Posted: 30th Aug 2013 04:49
Alright & thanks for your advice, Libervurto & Mr. Handy. Sorry I did not make myself clear on the subject. Anyway thanks for those who advise me as a new comer.

Richard L. West
Mage
Valued Member
19
Years of Service
User Offline
Joined: 3rd Feb 2007
Location:
Posted: 30th Aug 2013 05:54
Quote: "There is always a way... the first step is to give your threads meaningful titles."

As a fan of the search tool, this is what immediately irked me... Why did he cut the title short?

Login to post a reply

Server time is: 2026-07-07 01:53:49
Your offset time is: 2026-07-07 01:53:49