TIMER HELP

  • HI IM UNCLEAR ON HOW TO SET UP A TIMER THAT WOULD COUNT SECONDS AND SPLIT SECONDS.

    ID LIKE THE TIMER TO START AS GAME STARTS THEN COUNT HOW MANY SECONDS I SURVIVED IN GAME .

    SO IF I DIE THE TIMER WOULD RESET.

    THANKS HELP WOULD BE MUCH APPRECIATED.

    i have got the timer to work, but it continues to count even thou i "die"

    so my question is how do i get timer to stop when i die, and start when i restart game

    plz help

  • You say you got timer to work. I presume you storing the seconds in a variable.

    So when you die

    Save your time

    Set variable to 0 again.

    restart game

    You can also add a condition called pause....

    Variable "pauseTimer" = 0

    so your timer counts when condition "pauseTimer" = 0

    When you character dies. Set pauseTimer = 1

    That'll work too

  • dude im not even sure my timer correct.....

    iv created a text object

    iv got global variable timer = 0

    system every tick timer .. set text to (int(time))

    this adds time up in seconds.

    how do i store that time, or set the variable to zero

  • Is it useful to set "time" to integer ? Isn't it already an integer ?

    By the way, you just have to do :

    system | start of layout -> set timer to 0.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • hey coin,

    i went -> system -> start of layout,

    but under what would i find "set timer"

    or where would i find option to set timer

  • "system -> start of layout" is the condition.

    The full action "path" is : "system -> global & local variables -> set value -> timer : 0"

  • thanks

    but for some reason it doesn't work, iv set it like that before.

    as soon as i press play and the game(layout) continues

    the seconds continue as well

  • Have a look at this

    I would suggest reading the manual. And learning the basics. Do a few examples, go through a few tutorials.

    You have to learn how to use the software.

    Here is another one to look at.

    You will find many many examples on timers, in tutorials, and in forum. Search

  • thanks man

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