Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Power Ups

memski425memski425 Posts: 19Member
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?


  • quantumsheepquantumsheep Posts: 8,188Member
    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...

This discussion has been closed.