|
Post by Hippani on Nov 15, 2012 15:56:15 GMT
Add an mp3 or wav to the library (MySound in this example).
Turn off autoplay for the movie.
In 'OnStart' add code like this:
PlaySound("MySound",true); Play();
Add a toggle button. Change 'OnClick':
StopSound("MySound");
Change 'OnRelease' to:
PlaySound("MySound",true);
|
|
|
Post by thunder on Mar 10, 2016 11:18:25 GMT
what if there are 3 music pieces througout the movie how would I turn of music (same button)?
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Mar 10, 2016 18:03:32 GMT
StopSound("MySound1"); StopSound("MySound2"); StopSound("MySound3");
or you can use a loop condition to stop these music.
|
|
|
Post by thunder on Mar 10, 2016 19:14:21 GMT
a simple stop command for all three, of course . a loop condition? ok i'll have to figure out how that works. I was thinking about OnUpdate script that might check if a music off button was pressed at first. but a loop condition is probably a better solution
|
|