Speed up an actor question

DrGlickertDrGlickert Member Posts: 1,135
edited November -1 in Working with GS (Mac)
I'd like to speed up an actor that's already moving. So actor is traveling at a speed of 300. How do I get that actor to travel at a speed of 500, but continue on it's current path.

I've posted a picture of my code to see if someone has some ideas.

http://s1210.photobucket.com/albums/cc402/DrGlickert/

The first picture is the Actor, his job is to move down from the top of the screen, collide with the PlayerPaddle, then change a game attribute.

The second picture is the Ball Actor that I'd like to speed up. You'll see the rule is that when the game attribute = 3 then do the following; Accelerate, and change the max speed (to 500), otherwise, return to originial max speed (300).

Finally, the PlayerPaddle has a Timer on it to change back the game attribute from 3 (or any number for that matter) to 0.

1) My balls start doing crazy things in the game (flying all over the place randomly for those 10 seconds).
2) Am I going about this the correct way or should I change things up and try a different logic?

Thank you.

Comments

Sign In or Register to comment.