Can I Setup Timer ?

Discussion in 'How Can I...?' started by Arshpreet, Dec 23, 2016.

  1. Arshpreet

    Arshpreet Avid Boxer

    Joined:
    Jul 20, 2016
    Messages:
    248
    Likes Received:
    50
    i am making a parkour game so i need To Setup Timer in The game
     
  2. Nihat

    Nihat Serious Boxer

    Joined:
    Jun 29, 2016
    Messages:
    545
    Likes Received:
    153
    I also would like to know that..
     
  3. telerebor

    telerebor Avid Boxer

    Joined:
    Jan 12, 2016
    Messages:
    279
    Likes Received:
    145
    Add an action that rewards 1 point. Then copy that action and place it in an objects animation. Then add that object into the default animation of your character as a decoration and give it a spawned of 1 ( or whatever you want). When you are satisfied with it open the object and animation and give it an opacity of 0.01 so it is not visible. Now the points would increase per second so you can add a text in the UI and make it show the session points. You can then add an observer that stops the game after the points reached like 20 or whatever you want.
     
    Jackazoid, Arshpreet and Nihat like this.
  4. Nihat

    Nihat Serious Boxer

    Joined:
    Jun 29, 2016
    Messages:
    545
    Likes Received:
    153
    Thanks telerebor for reply, but i still can't understand that :(
     
    Arshpreet likes this.
  5. heathclose

    heathclose Miniboss Boxer

    Joined:
    Jan 28, 2016
    Messages:
    1,810
    Likes Received:
    1,024
  6. Arshpreet

    Arshpreet Avid Boxer

    Joined:
    Jul 20, 2016
    Messages:
    248
    Likes Received:
    50
  7. Arshpreet

    Arshpreet Avid Boxer

    Joined:
    Jul 20, 2016
    Messages:
    248
    Likes Received:
    50
    and I Am trying To understand lol
     
  8. Nihat

    Nihat Serious Boxer

    Joined:
    Jun 29, 2016
    Messages:
    545
    Likes Received:
    153
  9. heathclose

    heathclose Miniboss Boxer

    Joined:
    Jan 28, 2016
    Messages:
    1,810
    Likes Received:
    1,024
    custom fonts can reverse counters... look up the health bar tutorial from @VectologyGames , there is talk of custom fonts in that thread.
     
    Nihat likes this.
  10. Nihat

    Nihat Serious Boxer

    Joined:
    Jun 29, 2016
    Messages:
    545
    Likes Received:
    153
    Ok, Thanks a lot!
     
  11. playsgames6666

    playsgames6666 Miniboss Boxer

    Joined:
    Nov 13, 2015
    Messages:
    1,168
    Likes Received:
    745
    Thats an awesome trick the timer....
    Now one question, @heathclose
    Im using the timer in my world, but in my world i have placed an action set to gameplay and set the time warp to zero, as i want the world to be paused when entering the world. So the user can read some quick instructions, then the game will proceed.
    My problem is the timer pauses as it should when entering the world but when the action duration finishes and the game continues the timer starts at 3 instead of zero, so I'm guessing the spawner, doesn't actually pause, but the timer objects do once spawned.
    Not really sure though,.
    Any suggestions or more tricks up your sleeve that could help rectify this.
    Your wisdom would be highly appreciated....
     
  12. FranciscoBala

    FranciscoBala Avid Boxer

    Joined:
    Feb 25, 2017
    Messages:
    161
    Likes Received:
    69
  13. heathclose

    heathclose Miniboss Boxer

    Joined:
    Jan 28, 2016
    Messages:
    1,810
    Likes Received:
    1,024
    why aren't you using a menu jump to pause for instructions... why are you using a timer?
     
  14. playsgames6666

    playsgames6666 Miniboss Boxer

    Joined:
    Nov 13, 2015
    Messages:
    1,168
    Likes Received:
    745
    Thanks for replying...
    So i have made a few changes.
    My timer is for the user to reach a goal within 30 seconds or its game over. So my timer works perfect,
    So i have an action set to, zero time warp, to pause at the start, and the action is actually a countdown, 3 2 1 Go,
    All works well, except once the countdown has finished and the action is complete the timer jumps 3 seconds,
    So I'm thinking while the countdown is happening it still spawns the timer objects, and they pause once spawned, then when the action is complete all three timer objects are counted.
    So i need to re think what I'm doing as zero time warp doesn't effect the spawner.
    Ill have to play around i guess to see what else can work.
     
  15. Bonzic888

    Bonzic888 Boxer

    Joined:
    Jan 21, 2018
    Messages:
    4
    Likes Received:
    0
    Not sure if anyone has come across this minor issue but it certainly confused me for a while. In following Heath Close's Video 10 for the Timer solution I had an issue whereby the timer countdown would remain at zero. After checking the steps against the video multiple times it turned out it was due to the Joystick touch area covering the timer. As soon as I moved the touch area to not cover the timer it worked fine.
     

Share This Page