Page 1 of 1

How can I put music??

PostPosted: Wed Dec 19, 2007 1:47 pm
by Sondise
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:

Re: How can I put music??

PostPosted: Wed Dec 19, 2007 2:19 pm
by asmodeus
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.

Re: How can I put music??

PostPosted: Wed Dec 19, 2007 8:05 pm
by Sondise
And how to stop sound?

Re: How can I put music??

PostPosted: Thu Dec 20, 2007 1:15 pm
by asmodeus
Use the stopSound() function.

Re: How can I put music??

PostPosted: Thu Dec 20, 2007 1:17 pm
by Sondise
And I put what in the parentheses?

Re: How can I put music??

PostPosted: Thu Dec 20, 2007 1:24 pm
by asmodeus
What are parentheses? Do you mean the arguments?

Re: How can I put music??

PostPosted: Thu Dec 20, 2007 1:26 pm
by Sondise
I meant these: "()".

Re: How can I put music??

PostPosted: Thu Dec 20, 2007 1:41 pm
by asmodeus
I don't know. I only know that there is one argument. Try it with (0).