How can I put music??

Talk about making games.

How can I put music??

Postby Sondise » Wed Dec 19, 2007 1:47 pm

I would like to put a music, and make it repeat while the player is playing that level. Then, the music ends. Could you help me? :mrgreen:
User avatar
Sondise
 
Posts: 94
Joined: Thu Nov 01, 2007 11:04 pm
Location: South america
Score: 0 Give a positive score

Re: How can I put music??

Postby asmodeus » Wed Dec 19, 2007 2:19 pm

Write this in the script editor:
Code: Select all
PlayMusic2("data/mymusic.ogg", 1.000000, 0, HIGH_PRIORITY_MUSIC);

Write instead of "data/mymusic.ogg" the path of your music.
User avatar
asmodeus
 
Posts: 483
Joined: Thu Oct 11, 2007 5:04 pm
Location: Germany
Score: 43 Give a positive score

Re: How can I put music??

Postby Sondise » Wed Dec 19, 2007 8:05 pm

And how to stop sound?
User avatar
Sondise
 
Posts: 94
Joined: Thu Nov 01, 2007 11:04 pm
Location: South america
Score: 0 Give a positive score

Re: How can I put music??

Postby asmodeus » Thu Dec 20, 2007 1:15 pm

Use the stopSound() function.
User avatar
asmodeus
 
Posts: 483
Joined: Thu Oct 11, 2007 5:04 pm
Location: Germany
Score: 43 Give a positive score

Re: How can I put music??

Postby Sondise » Thu Dec 20, 2007 1:17 pm

And I put what in the parentheses?
User avatar
Sondise
 
Posts: 94
Joined: Thu Nov 01, 2007 11:04 pm
Location: South america
Score: 0 Give a positive score

Re: How can I put music??

Postby asmodeus » Thu Dec 20, 2007 1:24 pm

What are parentheses? Do you mean the arguments?
User avatar
asmodeus
 
Posts: 483
Joined: Thu Oct 11, 2007 5:04 pm
Location: Germany
Score: 43 Give a positive score

Re: How can I put music??

Postby Sondise » Thu Dec 20, 2007 1:26 pm

I meant these: "()".
User avatar
Sondise
 
Posts: 94
Joined: Thu Nov 01, 2007 11:04 pm
Location: South america
Score: 0 Give a positive score

Re: How can I put music??

Postby asmodeus » Thu Dec 20, 2007 1:41 pm

I don't know. I only know that there is one argument. Try it with (0).
User avatar
asmodeus
 
Posts: 483
Joined: Thu Oct 11, 2007 5:04 pm
Location: Germany
Score: 43 Give a positive score


Return to Game Development

Who is online

Users browsing this forum: No registered users and 1 guest

cron