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 / Using and Loading Media

Author
Message
SerphE
21
Years of Service
User Offline
Joined: 18th Jun 2003
Location: United States
Posted: 9th Feb 2004 18:53
I'm still trying to figure out the stuff that everyone else probobly knows, but where do you put the media that you want to use to load in your game. Do you put it in the file of your game in the myproj folder ?

Can you use the media that Dark Basic has in it with your own game ? Also, if i use that media in my game will it be gone from Dark Basic ? If there is some post or anything that help explains all of this stuff, becaue i am having a hard time with this sort of stuff.
any information would be great thanx !!

I am a machine I will never stop until I acomplish my goal, unless I run out of chocolate milk.
Kentaree
21
Years of Service
User Offline
Joined: 5th Oct 2002
Location: Clonmel, Ireland
Posted: 9th Feb 2004 18:58
Usually, people put media in the folder where their source files are, or in a subfolder. You can use the media included with darkbasic, but usually you make a copy of it and stick it in your project folder just like any other media. Anything is possible really, but sometimes some ways are easier or neater than others.

I would be unstoppable if I could just get started...
CattleRustler
Retired Moderator
21
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 9th Feb 2004 19:45
copy the media you want to use to the project directory, where it can be placed in the dir with the exe or in a subdir like "media". from code you access the media with

load sound "mywav.wav",n (if in the dir with the exe)
- or
load sound "\media\mywav.wav\",n (if in a subdir named media)



-RUST-
"What the... Mooooooooooo!"

Login to post a reply

Server time is: 2024-09-21 20:30:53
Your offset time is: 2024-09-21 20:30:53