How do I Display time on Game Over screen.

Get help using Construct 2

Post » Mon Mar 03, 2014 6:11 pm

Hey,
I am making a game that sees how long a player can last. I want the Game Over screen to show what the player's time was. Kind of like a leader board. I found a few tutorials on time that is how I got the time to work but I can't find out how to display it at the end. I would also like the game to get harder over time and I can't seem to figure that one out either…. Thanks for all your help.
B
5
Posts: 3
Reputation: 244

Post » Mon Mar 03, 2014 8:20 pm

If you want my advice here how I will make it if I was you: first create global variable called :"PlayerTime" ,
1- then create condition: "Every 1 second" and "If Player.count=1" ==> add 1 to playerTime.
Once the player is destroyed, the PlayerTime will stop.
2- Add text and set condition: "Everytick" ==> Set text (any name) to ("Time: "&PlayerTime)
Hope it would help you
ImageImageImageImageImage
B
56
S
15
G
5
Posts: 852
Reputation: 11,436

Post » Mon Mar 10, 2014 4:40 pm

Make a game harder add game speed gobble variables and at certain time make Gamespeed increase
meaning if your gamespeed = 300 then just add gamespeed + 100 or 200 and so on
B
252
S
39
G
15
Posts: 1,964
Reputation: 40,753

Post » Thu Mar 20, 2014 8:58 pm

Naji, thanks for your reply. What I did was Create a "GV" called Timer. On every tick I add dt timer, and on a text sprite I Set text to timer. If i clone the text and set the text to timer at the game over screen it works. what I want it to do is keep your time so you can see if you beat your score.
B
5
Posts: 3
Reputation: 244

Post » Thu Mar 20, 2014 8:58 pm

Thanks Lordshiva, I will try that to see how it works...
B
5
Posts: 3
Reputation: 244


Return to How do I....?

Who is online

Users browsing this forum: Anna Nehves Br, divsyntax, Google [Bot], volumetv and 16 guests