[Trigger] Music to repeat?

Status
Not open for further replies.
Level 4
Joined
Aug 2, 2007
Messages
69
I have a music file playing as background music for my hero defense, but after the music stops, it no longer plays again. Is there a way I can have it keep playing?

Here's my trigger:

  • Events
  • Time - Elapsed game time is 0.01 seconds
  • Conditions
  • Actions
  • Sound - Play Carl_Orff___Carmina Burana01 <gen>
 
Hey suave o-o didn't know you were a member of hive lol, your making a hero defence?

How long is the music? Put a trigger to shut this trigger off after X seconds (X being the time the music lasts) then another trigger to turn it back on, restarting the music o-o?
 
Turning back on that trigger will do nothing as the event will not be triggered.

A much easier and more elegant solution is to add a second event.

  • Music
    • Events
      • Time - Elapsed game time is 0.01 seconds
      • Time - Every 122.00 seconds of game time
    • Conditions
    • Actions
      • Sound - Play ArthasTheme <gen>
 
  • Events
    • Time - Elapsed game time is 0.50 seconds
  • Conditions
    • (This trigger is On) equal to true
  • Actions
    • Sound - Play YourMusic (Sound - Play Music not Play Sound of course)
    • Wait (insert length of that song here) seconds
    • Trigger - Run (This trigger) (checking conditions)

Turn the trigger off if you want the music to stop looping.
 
Status
Not open for further replies.
Back
Top