Play music on countdown remaining?

Level 8
Joined
Oct 6, 2022
Messages
213
So as the topic said, how can i "play music on countdown remaining?" since my goal is to try to make the map more hype as the countdown remaining music starts in the certain minutes left, i would like to put it there. but i don't know how.

it's like this.
Play music on countdown remaining.png

i would appreciate the help of you all.
 
When your Dialog button is clicked you can determine how long the game will last. Then start some Timers that handle the Music/Game Over stuff:
  • Select Time
    • Events
      • Dialog - A dialog button is clicked for Select_Time_Dialog
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Clicked dialog button) Equal to Select_Time_Button[1]
        • Then - Actions
          • Set Game_Over_Time = (60.00 x 30.00)
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Clicked dialog button) Equal to Select_Time_Button[2]
            • Then - Actions
              • Set Game_Over_Time = (60.00 x 45.00)
            • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (Clicked dialog button) Equal to Select_Time_Button[3]
                • Then - Actions
                  • Set Game_Over_Time = (60.00 x 60.00)
                • Else - Actions
      • Countdown Timer - Start Game_Over_Timer as a One-shot timer that will expire in Game_Over_Time seconds
      • Countdown Timer - Start Game_Over_Music_Timer_A as a One-shot timer that will expire in (Game_Over_Time - 420.00) seconds
      • Countdown Timer - Start Game_Over_Music_Timer_B as a One-shot timer that will expire in (Game_Over_Time - 120.00) seconds
Then stop and play the new music once a timer expires. You could split this into two triggers for two different songs:
  • Game Over Music
    • Events
      • Time - Game_Over_Music_Timer_A expires
      • Time - Game_Over_Music_Timer_B expires
    • Conditions
    • Actions
      • Sound - Stop music After fading
      • Sound - Play PursuitTheme <gen>
Here's the actual "Game Over" stuff, you probably didn't need to see this but I added it for clarity:
  • Game Over
    • Events
      • Time - Game_Over_Timer expires
    • Conditions
    • Actions
      • Player Group - Pick every player in (All players) and do (Actions)
        • Loop - Actions
          • Game - Defeat (Picked player) with the message: Defeat!
1756569817506.png
 
Last edited:
Back
Top