Power Up timer?

thilanwijthilanwij Member Posts: 20
edited February 2012 in Working with GS (Mac)
Hey everyone! I was wondering how I would make a power up timer? Like if you collect a powerup, it will last a certain amount of time then expire. I want to let the user know how much time is left til it expires. I'm thinking of ideas of how to do it, but nothing is coming out. Any ideas? Thanks in advance!

EDIT: Also, (if anyone can also help in this) how would I come up with a bar if you fill it up, you unlock certain amount of powers for a limited time? (bar as in like a health bar or something) If you collect certain actors, it will fill or lower the bar and if you fill the whole thing up, you get powers. Thanks again!

Comments

  • LeonardDeveloperLeonardDeveloper Member Posts: 4,630
    When actor overlaps or collides with actor "power up"
    after
  • Braydon_SFXBraydon_SFX Member, Sous Chef, Bowlboy Sidekick Posts: 9,273
    Create a rule in your "hero" actor..

    When overlaps or collide with actor "Power up"
    Change attribute blah to true (whatever you want it to trigger)
    Timer, after 3 seconds (or whatever) change attribute blah to false.

    Hope that helps
  • thilanwijthilanwij Member Posts: 20
    Thanks everyone! btw i just found out about the timer one via gshelper.com! "working with countdown timers in Gamesalad video tutorial"
    All I need now is to possibly have a bar that fills up !

    P.S. btw i was hoping that it would show a countdown on the screen to show how many time is left til it expires and found that out in the video! thanks again guys!
  • calvin9403calvin9403 Member Posts: 3,186
    Then just make an integer and count down on that

    And display the attribute
  • gummyboysgummyboys Member Posts: 3

    hi for sum reason it doesn't turn off any help

  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772

    @gummyboys, this thread is 3 years old.... If you have a question consider starting a new thread topic.

This discussion has been closed.