How do you add music

Game Editor comments and discussion.

How do you add music

Postby pdude1 » Tue Jul 01, 2008 10:05 pm

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?
does anyone know a good signiture
User avatar
pdude1
 
Posts: 10
Joined: Sun Jun 29, 2008 8:30 pm
Score: 0 Give a positive score

Re: How do you add music

Postby Thanx » Tue Jul 01, 2008 11:11 pm

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!
http://www.youtube.com/watch?v=XyXexDJBv58
http://www.youtube.com/watch?v=Be4__gww1xQ
These are me and playing the piano (second one with a friend/fellow student)
Hope you watch and enjoy!
User avatar
Thanx
 
Posts: 314
Joined: Sat Jan 26, 2008 10:07 pm
Location: Home sweet home! :)
Score: 24 Give a positive score

Re: How do you add music

Postby feral » Tue Jul 01, 2008 11:16 pm

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
User avatar
feral
 
Posts: 308
Joined: Sun Mar 16, 2008 6:27 am
Score: 47 Give a positive score

Re: How do you add music

Postby segwego12 » Thu Jul 10, 2008 6:48 pm

You can use midi too. Don't use Draw actor, use Create Actor.
http://www.freewebs.com/primewaregames/

The Primeware Games website

Projects
Era of Rome: Done
segwego12
 
Posts: 167
Joined: Mon Jul 07, 2008 2:48 am
Location: My Website, please come to my website.
Score: 3 Give a positive score

Re: How do you add music

Postby DST » Fri Jul 11, 2008 1:13 am

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!
It's easier to be clever than it is to be kind.
http://www.lostsynapse.com
http://www.dstgames.com
User avatar
DST
 
Posts: 1117
Joined: Sun Apr 15, 2007 5:36 pm
Location: 20 minutes into the future
Score: 151 Give a positive score


Return to GE - General

Who is online

Users browsing this forum: No registered users and 1 guest

cron