Resetting game.Time when scene resets
TheHawk
Member Posts: 23
I'm fairly new to Gamesalad and found a previous post concerning this issue. Unfortunately I copuld not comprehend the manner in which this could be easily and properly resolved. I would appreciate any help. Thanks
the post was:
Setup two real attributes set to 0
Then constrain 1st attribute to game.time-2nd attribute
Then use 1st attribute instead of game.time
Then when you need to reset game change 2nd attribute to equal game.time
the post was:
Setup two real attributes set to 0
Then constrain 1st attribute to game.time-2nd attribute
Then use 1st attribute instead of game.time
Then when you need to reset game change 2nd attribute to equal game.time
Comments
Then, during the level, when you need gametime, just check for gameTime-startTime, and you have your time like it's been resetted for that level.(if (game.Time-game.startTime) > 1 then ...)