Timer and Pause

DrGlickertDrGlickert Member Posts: 1,135
edited November -1 in Working with GS (Mac)
I'd like for the game.Time to stop when paused. My level grants bonus points based on how quickly the player completes a level.

In the pause menu that I've created, the game.Time keeps running. Anyone know a work-around with this?

Comments

  • spliketspliket Member Posts: 93
    i'm not sure there's a way to stop the game timer. does using the scene timer instead of the game timer work?
  • DrGlickertDrGlickert Member Posts: 1,135
    I'm not sure how to utilize the scene.Timer as a callable attribute in a text display. I'll give it a shot and see if it works...
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    Just make your own attribute called timee, and a pause attribute. have a rule if attribute pause is false, then drag a timer in and have every one second change attribute timee to timee+1. When you press your pause button change attributer pause to true, then back to false when unpaused.

    The game.time attribute is to measure how long the apps been running, so it cant be turned back or anything
  • spliketspliket Member Posts: 93
    DrGlickert said:
    I'm not sure how to utilize the scene.Timer as a callable attribute in a text display. I'll give it a shot and see if it works...

    it has to be from an actor in the scene...you cannot access the scene attributes from the prototype actors.
Sign In or Register to comment.