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 / Dam darkbasic need help with music loading

Author
Message
metal slug
19
Years of Service
User Offline
Joined: 18th Dec 2004
Location:
Posted: 5th Sep 2005 22:17
Hello i am unable to load music,images and so on.
Can someone plz help me with this problem as i am so angry at this.
Have tried different ways on how to load but nothing.

Thankyou
Torq
20
Years of Service
User Offline
Joined: 18th Jan 2004
Location:
Posted: 6th Sep 2005 01:20 Edited at: 6th Sep 2005 07:23
Make sure your images,sounds, are in your projects folder. The folder you save your project to when you save your project.

Then its just.
load image "Image_name_here.bmp",1
load sound "Sound_name_here.wave",1

The number at the end assigns an Id to the sound or imageso now to play a sound you would say.

Play sound 1
To make your image a sprite so you can move it etc..
sprite 1,xpos,ypos,1
The first 1 is your sprite number the last 1 is the image to use to make the sprite.

Oh and what ways have you tried loading the images and sounds ?
IF you look up sound or image in the help files there will be loads of commands to use

http://badtempergames.tripod.com

Deep Thought 42
19
Years of Service
User Offline
Joined: 31st Jul 2005
Location: New Jersey, USA
Posted: 6th Sep 2005 05:10 Edited at: 6th Sep 2005 05:14
Try this:
Step 1- click the 'add' button in the media panel
Step 2- click the 'copy the media files into current project directory' check box
Step 3- type

If this doesn't work I don't know what else will.

"Winners never quit and quitters never win. But those who never win and never quit are idiots."
Silent Knight
19
Years of Service
User Offline
Joined: 25th Jan 2005
Location: In Your Mind
Posted: 7th Sep 2005 22:35 Edited at: 7th Sep 2005 23:10
if your problem is dealing with folders, then DB wont find the media type automatically.

Suppose you want to load a music file that is in a folder beyond your program so like the music file's address is like this
C/Program Files/mygame/music/song.mp3

And your program will go here
C/Program Files/mygame/game.exe

make sure in the load music commands you have this code

because using a code like this

only works if the program and music are in the same file.

if you want to be able to keep the code like that and not need to continuously make executables, then put the source code in the folder you plan to put the final in, but make sure to move the source code before publishing

Version--DB Classic
900 mhz AMD Athlon, 128 MB RAM,
16 MB NVidia Vanta gfx card, Windows ME System software
Silent Knight
19
Years of Service
User Offline
Joined: 25th Jan 2005
Location: In Your Mind
Posted: 7th Sep 2005 22:37 Edited at: 7th Sep 2005 23:11
removed message

Version--DB Classic
900 mhz AMD Athlon, 128 MB RAM,
16 MB NVidia Vanta gfx card, Windows ME System software

Login to post a reply

Server time is: 2024-09-24 03:23:28
Your offset time is: 2024-09-24 03:23:28