Boost up/ Power up?

DookiDooki Member Posts: 247
edited November -1 in Working with GS (Mac)
Hey all,

How do you create power ups? I imagine spawning a power actor but I need help it getting it to speed up my actor for a few seconds. I also have a timer for the level. How would I create a power up to add time or push back the timer?

Thanks!

Comments

  • DookiDooki Member Posts: 247
    Anyone??
  • quantumsheepquantumsheep Member Posts: 8,188
    Easy.

    I imagine that every second you make your timer = timer +1

    When your player collides with power up:

    change attribute timer to timer + 20 (or however much you want)

    Or

    change attributo timer to timer-20 (to subtract time)

    Hope that helps,

    QS :D

    Dr. Sam Beckett never returned home...
    Twitter: https://twitter.com/Quantum_Sheep
    Web: https://quantumsheep.itch.io

  • DookiDooki Member Posts: 247
    Thanks for all you help QS!

    OK, I've done this change for my gamelives. So do I create an attribute named "Timer?"

    Do you have any insight into a speed boost? My actor moves at a certain speed. When he collides with the power up he gets a temporary boost (change velocity?).
Sign In or Register to comment.