Timer / Hi Score

Get help using Construct 2

Post » Sat Nov 05, 2011 1:27 pm

Hello,

I've just been messing around with Construct 2 - quite a lot of fun. Two things I can't work out:

I want each level to be timed and to display a clock on the screen showing how much time has passed since starting the level.

At the end of the level I'd like each player to be able to add their name so that their name and time can be stored on a high score table in a different layout for the game.

Is this possible with C2 yet?

Cheers,
Mik

www.crudepixel.com
B
39
S
12
G
8
Posts: 580
Reputation: 7,108

Post » Sat Nov 05, 2011 5:48 pm

Sure :)
The Timer is basic math which construct2 will handle with no problem.

For Highscores you can use a php script and ajax to submit and load them :)
B
33
S
6
G
7
Posts: 338
Reputation: 7,424

Post » Sun Nov 06, 2011 8:54 am

Well that's cool, is there a way to use the text object to print level times on the screen? like "every second add 1 to 'timer', print time" sort of thing?

[QUOTE=Ize] Sure :)
The Timer is basic math which construct2 will handle with no problem.

For Highscores you can use a php script and ajax to submit and load them :)[/QUOTE] CrudeMik2011-11-06 08:55:01
B
39
S
12
G
8
Posts: 580
Reputation: 7,108

Post » Sun Nov 06, 2011 9:01 am

Yes .. you can make a text .. than as event "Every Tick" -> "Set Text to:" and now you have your variable like "timer" and your "SET TEXT" has to look a bit like

"Your current time ist: "&text1.timer (text1 is the name of you text and with ".timer" you are opening the variable TIMER from the object TEXT1, IF you have "TIMER" as a global variable just make &timer without text1. or something like that"

Or you could just make the text like this:

text1.timer

timer

othernamefortext.timer

Hopefully you was looking for that =)

Cheers
B
17
S
4
G
4
Posts: 94
Reputation: 3,058


Return to How do I....?

Who is online

Users browsing this forum: Nifl and 21 guests