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 Discussion / Background Music

Author
Message
paulkay
18
Years of Service
User Offline
Joined: 11th Jul 2007
Location:
Posted: 12th Jul 2007 21:06
How do i get music to play in the background while running the game?
Dark Dragon
19
Years of Service
User Offline
Joined: 22nd Jun 2007
Location: In the ring, Kickin\' *donkeybutt*.
Posted: 12th Jul 2007 22:24 Edited at: 13th Jul 2007 02:35
simple:

you can place that where you need the music to start playing.
alien master
19
Years of Service
User Offline
Joined: 12th Jun 2007
Location:
Posted: 13th Jul 2007 06:38
See you could also do this for example



and just so you understand that code more what you are basically doing is loading a song from the game file or whatever dir you have set the file to.

the file doesnt have to be a mp3 it can also be a mid file

the 1 at the end is basically a name for that file in the program your using so later into the program just type

play music 1

and it will find the song labeled 1 and will play it. Now if you want a world of warcraft type of overworld music so it plays but you can hear the sounds stuff like that. I found out it wouldnt be the best choice for an rpg game unless its more fantasy .

now if you want to loop the music obviously

loop music 1

it would probably be best to use the music for a menu or something but if you want to use it for a game its your choice i cant stop you

Alienmaster
Libervurto
20
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 13th Jul 2007 15:21
@Paul

There are a limited amount of commands for "music" if you loaded it in as a "sound" you can adjust its volume and speed etc (i think you might have to convert it to .wav though)
Look in the help file, this is all covered there.

I make music and art. Here is a sample of my art: done in Paint! It's all I have

Login to post a reply

Server time is: 2026-07-06 03:25:42
Your offset time is: 2026-07-06 03:25:42