Mirage Source http://www.miragesource.net/forums/ |
|
Dont restart musuc? http://www.miragesource.net/forums/viewtopic.php?f=201&t=4973 |
Page 1 of 1 |
Author: | timster0 [ Sat Jan 17, 2009 11:21 pm ] |
Post subject: | Dont restart musuc? |
How can I make music continue playing if I go on a map map with the same music? |
Author: | Labmonkey [ Sat Jan 17, 2009 11:26 pm ] |
Post subject: | Re: Dont restart musuc? |
find where the music code is run. Search for playmidi or something. Do a check before it plays the music to see make sure musicplaying <> newmusic. I dont have mirage infront of me, if you still need help I will elaborate. |
Author: | timster0 [ Sun Jan 18, 2009 6:50 pm ] |
Post subject: | Re: Dont restart musuc? |
Would that mean I would have to make a function that checks which music is playing? |
Author: | Tony [ Mon Jan 19, 2009 9:17 am ] |
Post subject: | Re: Dont restart musuc? |
Sigh* Just go to your play music or w/e sub and do that check before anything. Do the check so that if it = the current song playing then exit sub. |
Author: | timster0 [ Mon Jan 19, 2009 11:34 pm ] |
Post subject: | Re: Dont restart musuc? |
Here is my Play Music thing: Code: ' Play music If Map.Music > 0 Then Call DirectMusic_PlayMidi("music" & Trim$(CStr(Map.Music)) & ".mid") Else DirectMusic_StopMidi End If I don't understand how to check something. |
Author: | GIAKEN [ Tue Jan 20, 2009 2:08 am ] |
Post subject: | Re: Dont restart musuc? |
IF MUSIC = MUSIC THAT IS PLAYING THEN DO NOT ATTEMPT TO PLAY THE MUSIC AGAIN |
Author: | timster0 [ Wed Jan 21, 2009 12:05 am ] |
Post subject: | Re: Dont restart musuc? |
I got it working, posted a tut as well. |
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |