how to boost an actor

beastyfurkanbeastyfurkan Member, PRO Posts: 35
edited July 2012 in Working with GS (Mac)
I have an actor and when I overlap or collide with a boost actor I want the actor to boost its speed or move quickly how can I do this.

Best Answers

  • NovicaStudioNovicaStudio Posts: 174
    Accepted Answer
    Make an integer attribute called speed.
    Have that attribute be the speed part of your move rule(If you are using move behavior, have the speed = game.speed) Then if it overlaps or collides change attribute game.speed to game.speed + 100 or something for 2 seconds.
    Then after 2 seconds change attribute game.speed to game.speed - 100
  • CluvCluv Posts: 229
    Accepted Answer
    In the object itself create a rule with "collides with" OBJECT "booster as one of its conditions

    Then change attribute self.motion and change the velocity to what you want it to be, if you are using velocity to change the speed of your actor.

    I hope that helps!

    -Charles

Answers

Sign In or Register to comment.