How to stop music in the script editor?

Non-platform specific questions.

How to stop music in the script editor?

Postby Garfield501 » Sat Oct 10, 2009 2:13 pm

Well, here is the question.

How can I stop music from playing in the script editor?

Thanks in advance,
Mark


PS. Is there some kind of catalog, where all those commands are explained.
Then I don't have to ask all these questions.
Garfield501
 
Posts: 25
Joined: Tue Sep 22, 2009 5:45 pm
Score: 0 Give a positive score

Re: How to stop music in the script editor?

Postby Kalladdolf » Sat Oct 10, 2009 3:46 pm

There is some kind of catalog, it's called the "Documentation". You'll find it in the help menu.

First, create a variable (I'll name it "var" in this example).
When you want to play the music, enter the following command:
Code: Select all
var = PlayMusic2(//whatever music you wanna play);

On the event on which you want to stop the music, put:
Code: Select all
StopSound(var);
User avatar
Kalladdolf
 
Posts: 2427
Joined: Sat Sep 08, 2007 8:22 am
Location: Germany
Score: 120 Give a positive score

Re: How to stop music in the script editor?

Postby Garfield501 » Sat Oct 10, 2009 4:19 pm

Okay, thanks

PS. what's the differnce between "PlayMusic" and "PlayMusic2".
Garfield501
 
Posts: 25
Joined: Tue Sep 22, 2009 5:45 pm
Score: 0 Give a positive score

Re: How to stop music in the script editor?

Postby skydereign » Sat Oct 10, 2009 6:46 pm

PlayMusic is obsolete. PlayMusic2 is the fix for that in earlier versions. I haven't been around since PlayMusic, so I don't know the specifics, but pretty much just use PlayMusic2.
User avatar
skydereign
 
Posts: 3510
Joined: Mon Jul 28, 2008 8:29 am
Score: 589 Give a positive score

Re: How to stop music in the script editor?

Postby Kalladdolf » Sat Oct 10, 2009 6:50 pm

If you select the option and not type it, Game Editor will pick PlayMusic2 anyway. Yea, there is no difference, really.
User avatar
Kalladdolf
 
Posts: 2427
Joined: Sat Sep 08, 2007 8:22 am
Location: Germany
Score: 120 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest