Alternating attribute after set time

crazyfishdevcrazyfishdev Member Posts: 283
edited April 2012 in Working with GS (Mac)
I have been stuck on this problem for almost a day and I still have not come up with a solution that I love and feel works. If you have any ideas I would love to listen :)

What I am trying to do is after about 30 seconds of a mode- a warm up/training mode- switch to a different mode. Then in this new mode every 10 seconds to change from on to off. The problem is that with the method I am currently using the attribute that is controlling this on/off changes from 0 to 1 and then back to 0 with the %2 trick(@tshirtbooth) however this means that one mode is stuck on during the first 30 seconds and that just doesn't work for my game. Any ideas on how to fix?

Thanks, <><

Best Answer

  • PsychoticStudiosPsychoticStudios Posts: 101
    Accepted Answer
    -Create a boolean attribute (set to false). now make a timer that says after 30 sec change attribute to true.
    -Now create a rule which says if attribute (the one you just made) is true and attribute (for gamemode) is 1 then add a timer for every ten seconds change attribute to 0.
    -Now create another rule which says if attribute (the one you just made) is true and attribute (for gamemode) is 0 then add a timer for every ten seconds change attribute to 1.

    Hope this helps :D

Answers

  • crazyfishdevcrazyfishdev Member Posts: 283
    My god :) forgot you could make rules include more than one attribute.... This is what happens when you try and work while sick as a dog... Im sorry for wasting your time haha

    Thanks <><
Sign In or Register to comment.