Different music at different time of day

I'm making a time based game,
the idea of the game is a continuing loop between day and night
The game has 3 Music file
2 will be played randomly during the start of the game (daytime)
and 1 will play at the start of sunset
but here's the challenge:
the music must not overlap each other so I created a boolean called soundtrack so as when it is off the music starts again
I created an attribute called day countdown where the day starts at 360 seconds and counts down to 0 then the next day starts, you could see the condition I put for night song when countdown is less then 180. I couldn't get it to work


**night music
**

**Day music
**

Sign In or Register to comment.