Pause Time DEMO

firemaplegamesfiremaplegames Member Posts: 3,211
edited November -1 in Working with GS (Mac)
Here is a little demo showing a solution to a problem tshirtbooth was having...

http://gamesalad.com/game/play/34237

This demo show shows how to pause/resume a time display.

This could be used for racing games, puzzle games, etc... when the player is racing against the clock!
Use it in any way you see fit!

Best,
Joe

Fire Maple Games

Comments

  • firemaplegamesfiremaplegames Member Posts: 3,211
    No problem! Glad I could help you out!

    I actually learn a lot from making these demos... cements my knowledge of the program.
  • JamesBoucherJamesBoucher Member Posts: 433
    I did not look at the demo, but here is how I did it. I use the system time (seconds game has been active). When you start (like racing) you set an attribute to current time then subtract that from system time. Then when you hit a pause button you set pause attribute to current system time. When you finished pause then you get system time again and subtract the pause time. This give you total time of the pause. Add the total pause time to the first attribute you created call current time and subtract that from system time.

    I use this in a current game that I'm making and it works great.
  • firemaplegamesfiremaplegames Member Posts: 3,211
    @James: Yes, that is how I did it.
Sign In or Register to comment.