How Do I Post the Time on a Game Over Layout?

Get help using Construct 2

Post » Sat Nov 19, 2016 1:52 am

In my game, I am using the time as my score and I have a text box which has "Time:" & time. When the game ends, the game goes to a second layout, which has game over and I would like to display the score, which is the time spent in the first layout before it goes to the second layout. I tried to add a textbox in the second layout that had "Final Time:" & time but the time continues to increase when in the second layout. Is there a way to stop the time in the second layout or is there an easier way to achieve this? I am only new to Construct 2 and any help would be greatly appreciated.
B
4
S
1
Posts: 6
Reputation: 314

Post » Sat Nov 19, 2016 11:47 am

Setting timescale to 0 does pause the game. Whatever your time variable is though, at the point where you want it to be stored set the time to a global variable something like CompleteTime so it is static and then display the global variable, that way time can continue but you have the completion time.
B
46
S
16
G
78
Posts: 2,170
Reputation: 46,357

Post » Sun Nov 20, 2016 12:01 am

@plinkie Thanks for your help
B
4
S
1
Posts: 6
Reputation: 314


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 49 guests