Timer question

FirstDanFirstDan Member Posts: 208
edited September 2012 in Working with GS (Mac)
Hi troops,

I have a piece of music that is 1 minute and 48 seconds long, which is 108 seconds.

Rule,
when game.music1 = true
timer: after 108 seconds (run to completion = checked)
change game.music1 = false

But its stopping the music after 48 seconds even though i have defined 108 seconds.

Can someone point me in the right direction in how I can achieve this?

Thanks

Dan

MY 1ST GAME IS COMING SOON...:)

Comments

  • ironDanironDan Member Posts: 148
    Make a self attribute inside your actor named Timer and set it to zero. NEXT create a Timer Attribute that says every 1 sec run to completion (WITH) a change change attribute inside that says Change Attribute self.timer to self.timer +1. Then create a 2nd rule that states when self.Timer = 108 change game.music to FALSE

    I contemplated helping you but then when I saw your name was DAN and I just had to help out a fellow DAN.....Just Kidding :))

    IronDan.... AKA "Dan"
  • FirstDanFirstDan Member Posts: 208
    @ironDan - thanks dan, i will try this later on and thanks for the humour...
Sign In or Register to comment.