how to boost an actor
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
-
NovicaStudio Posts: 174
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 -
Cluv Posts: 229
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