A clock running down

GuaveMediaGuaveMedia Member, PRO Posts: 1,262
edited January 2012 in Working with GS (Mac)
Hey,

I have a problem. I do not want to have time running down in numbers. I would like to
have a real clock where just the needle rotates. So the game starts at 60 seconds, but with some items
to be collected the time can be increased. So how to do this? Thanks for the support.

Alex

Comments

  • MotherHooseMotherHoose Member Posts: 2,456
    open GS click New on the Left side see "OSTime Demo" open that Template

    it will show you how to do both the digital and analog clocks (you want the analog one) …
    study and play with the parts you need to display the clock elements. (not graphics)
    it tracks real time!

    add game.Attribute integer type called trackTime (change value to the maximum time for play)
    a Timer behavior Every: 1 Second
    --changeAttribute: game.trackTime To: game.trackTime-1

    add on collectedItems:
    changeAttribute: game.trackTime To: game.trackTime+whatever you want to add


    Enjoy!
    @};- MH
Sign In or Register to comment.