Accurate TImer?

CLV25CLV25 Member Posts: 36
edited November -1 in Working with GS (Mac)
HI, is there anyway to make a timer in the HUD display decimal time? For example 1.45seconds or 10.29seconds.

Comments

  • wouterwouter Member Posts: 174
    use real attribute;)
  • CLV25CLV25 Member Posts: 36
    how?
  • wouterwouter Member Posts: 174
    make a attribute (decimaltimer) in game (game.decimaltimer), this must be a real attribute.
    make a timer:
    every 0.01 seconds change attribute game.decimaltimer to game.decimaltimer+0.01

    display text: game.decimaltimer
  • wouterwouter Member Posts: 174
    only gamesalad isn't that fast, so you have to try for example every 0.05 seconds game.decimaltimer+0.05;)
  • CLV25CLV25 Member Posts: 36
    thanks i'll try that and let you know if it works.
  • CLV25CLV25 Member Posts: 36
    it doesn't work, can you give me some more information? i have made the attribute and the actor and the display text behaviour. Also I have the timer: every 1 second. change attribute .... to ....+1. The .... are the real attribute
  • wouterwouter Member Posts: 174
    yeah and then in the display text behaviour: game.(... (you're real attribute)) and you must have that actor on the screen and voila? don't see what's the problem?
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    every 0.1 seconds

    change attribute to attribute+0.1

    not +1
  • CLV25CLV25 Member Posts: 36
    i made it every 1 second: change attribute to attribute+1 and it still doesn't work
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    yeah its not gonna work like that. Your adding 1 every 1 second, so how would there be a decimal lol. Itll just go from 1,2,3,4 and so on every second

    if you want it to add every 1 seconds then every 1 second change attribute to attirubte +0.1

    you have to make it a decimal for it to be a deciaml

    as long as its a real attriubte add your adding 0.1 it WILL work
  • wouterwouter Member Posts: 174
    you may send the projectfile to woplanet(at)gmail(dot)com and will look at it (only over about an half hour i'm going to bed so you must be fast or i will look at it tomorrow;)
  • CLV25CLV25 Member Posts: 36
    i'll send it to you so you can look at it tomorrow if i don't fix it :)
  • wouterwouter Member Posts: 174
    ok;) or you must send it in 20 minutes xD
  • CLV25CLV25 Member Posts: 36
    could you make a project file with the timer in it and then put it on mediafire or dropbox (or any other sharing site) please? Then i could copy everything i need. Thanks for all your help so far :D
  • wouterwouter Member Posts: 174
    just email me so i know you're email (if you don't want to post it on this forum;)

    i'm going to make a timer right now:P
  • wouterwouter Member Posts: 174
    yeah finished the timer, where's you're email xD
  • CLV25CLV25 Member Posts: 36
    sorry for being late ;( i don't mind if you send the timer to me tomorrow (22nd june)
    my email is 30secondsofcod@gmail.com
    thats my youtube channel email, which is crap....
    thank you for all the help and making the timer.
    have you tested that the timer works???
  • wouterwouter Member Posts: 174
    email send;)
    going to bed now;P

    good luck!
  • CLV25CLV25 Member Posts: 36
    thank you for all your help :D
  • CLV25CLV25 Member Posts: 36
    also can i use this timer to make a best time and last time?
    i have been trying for ages to try and make that work but it never has :(
  • wouterwouter Member Posts: 174




    don't know if it works, didn't try myself but just searched for "high score gamesalad" on youtube...
  • CLV25CLV25 Member Posts: 36
    Thanks :)
  • CLV25CLV25 Member Posts: 36
    Wouter could you please make a best lap system into the timer game project that you have already made for me. That would be amazing, thanks
Sign In or Register to comment.