Game over screen (save time)
gilamonster
Member Posts: 31
GS peeps, new to GS, but I am stuck on how to save the (amount of time it took for the player to complete the game) only on the game over screen. I can display the time on the game over screen, but it starts from 0 and keeps counting up when it switches over to the game over screen, I am using game.time as my timer. Any ideas? Thanks.
Comments
If you are new to GS, i would HIGHLY recommend getting the Gamesalad Handbook from Photics (a user on here)...it helped me out A LOT when I first started with GS. It's cheap, easy to read, and will save you HOURS of time researching stuff on here. I don't have a link to it, but it is called "The Unofficial Gamesalad Handbook" I think.
Good Luck Gila
- Josh
if I understand... you want the game to store the startTime and note the playing time and display the difference...
create a game Attribute name it startTime (real type)
create a game Attribute name it currentTime (real type)
on the button or whatever you use to initiate gamePlay have a changeAttribute startTime = game.Time
on the change to gameOver screen have a changeAttribute currentTime = game.Time
(game.Time is entered as an expression)
in the screen area for the playTime Display Text [expression] currentTime-startTime
MH