pausing timers?

slevslev Member Posts: 99
edited November -1 in Working with GS (Mac)
how can i pause a timer that spawns an actors every 2 seconds ?

Comments

  • slevslev Member Posts: 99
    bump?
  • old_kipperold_kipper Member Posts: 1,420
    Perhaps have the timer in rule that references an boolean attribute so you can make it true or false and then stop or start the spawning?

    hope that helps

    kipper
  • bluebyu25bluebyu25 Member Posts: 500
    If you are really desperate you can spawn and destroy it but what old kipper said should work just fine
  • slevslev Member Posts: 99
    ahh forgot to mension, the spawner times get quicker (to increase difficulty) so simply destorying the the spawned items wouldnt work as the timer would keep ticking. Im not sure but would a bolean attribute reset the timer each time it was turned on/off ?
  • youngster9youngster9 Member Posts: 326
    you can make a rule when the boolean was made true it will set the timer back to the original settings. Make the timer only work if the boolean is true. That should work.
  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    slev said:
    ahh forgot to mension, the spawner times get quicker (to increase difficulty) so simply destorying the the spawned items wouldnt work as the timer would keep ticking. Im not sure but would a bolean attribute reset the timer each time it was turned on/off ?

    If you have your timer duration setup to use whatever a game attribute is set to then as long as that attribute doesn't reset when you have a boolean disable your timer it will use the duration it stopped at when it starts again. Of course you will have to stop the game attribute from continuing to get smaller when ever you pause the timer.
Sign In or Register to comment.