Timer / Hi Score

  • 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

    crudepixel.com

  • 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 :)

  • 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?

    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 :)

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • 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

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)