music question

  • Lunar Engine v0.2.6 is out now! Download and check it out here. The map editor is also now fixed!

chagen

Member
Member
Jan 4, 2009
7
0
0
Gold
0
Since Maps aren't very big I was wondering if there is a way to keep the song playing if the next map has the same song... so
MAP1=Music1 then when it changes to map2 and it has the same Music1 then have it continue where it left off on map1. If map3 has a different song then stop and play new song.
 

Tony

Member
Member
Nov 29, 2006
780
0
0
Gold
0
I believe this tutorial should work,

<!-- l --><a class="postlink-local" href="http://web.miragesource.com/forums/viewtopic.php?f=128&t=4989">viewtopic.php?f=128&t=4989</a><!-- l -->
 
M

Matt

Guest
Guest
<div class="bbWrapper">music = map.music<br /> <br /> -change maps-<br /> <br /> if map.music &lt;&gt; music then<br /> music = map.music<br /> end if</div>
 

chagen

Member
Member
Jan 4, 2009
7
0
0
Gold
0
lol figured it out but thanks both of you if i wouldn't have thought of that it would have helped