Page 1 of 1

How do you add music

PostPosted: Tue Jul 01, 2008 10:05 pm
by pdude1
I figured out how to kill people now and my game is almost done i just want to add some music to it. If you can add music how do you?

Re: How do you add music

PostPosted: Tue Jul 01, 2008 11:11 pm
by Thanx
Easiest way:
Take one of your actors, one that appars at the beginning:
in CreateActor event --> Play Music
here you can add the file, set volume, priority, loop number...
Just add, and that's it, your game'll be done!

Re: How do you add music

PostPosted: Tue Jul 01, 2008 11:16 pm
by feral
on any event simply select
play music
or
play sound
music.jpg
screen grab - click to enlarge

or in scripting, select any of the functions
PlaySound
PlaySound2
PlayMusic
PlayMusic2

and then load the sound file..
example code:
PlayMusic2("yourmusic.ogg", 1.000000, 1, HIGH_PRIORITY_MUSIC);

where youmusic.ogg, is replaced with the name of your sound file..


see the script reference for more info
http://game-editor.com/docs/script_reference.htm

Re: How do you add music

PostPosted: Thu Jul 10, 2008 6:48 pm
by segwego12
You can use midi too. Don't use Draw actor, use Create Actor.

Re: How do you add music

PostPosted: Fri Jul 11, 2008 1:13 am
by DST
feral wrote:see the script reference for more info
http://game-editor.com/docs/script_reference.htm


I like how you've started putting that on your posts!