Power Ups

memski425memski425 Member Posts: 19
edited August 2012 in Working with GS (Mac)
I already created an actor for a powerup, however i do not know how to create my actor to become new with the power up. Any suggestions?

Comments

  • quantumsheepquantumsheep Member Posts: 8,188
    Have a rule in the power up that when it collides with the player actor, change an attribute, let's say 'Powerup' to 'true'.

    Then in the appropriate actor, have a rule that does what the power up is supposed to do.

    For example - if you're making a Smartbomb, you want all bad guys to be killed when smart bomb is true. So you'd put a rule in your bad guys that says 'if smart bomb is true, destroy me'.

    You may want to put a rule into a control actor that says 'if smart bomb is true, after .2 seconds change smart bomb to false'.

    This will turn 'off' the power up so that smart bomb isn't 'On' all the time (and therefore destroying all the bad guys even if you spawn new ones).

    That's the basics - hope it helps!

    QS ::D

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

Sign In or Register to comment.