Speed up the shot?
DrGlickert
Member Posts: 1,135
I'm making a brickbreaker/breakout type game and I'd like to have a power up speed up the ball on screen.
I've got the slow down effect figured out (I just changed the max speed on the ball based on a game.attribute).
Here's how I have it set up:
A power up hits the Player Paddle. A game.attribute called game.PickUpNumber (integer) is changed to 4. On the ball I have a rule that If game.PickUpNumber = 4, INTERPOLATE attribute self.motion.Max Speed to 300, change velocity to 300; otherwise change attribute self.motion.Max Speed to 200.
RULE: If PickUpNumber >= 1 AFTER 20 seconds change attribute to 0.
The issues that I'm having are;
1) The balls don't always move at a speed of 300.
2) the ball will change velocity at 0 degrees (to the right).
How do I get the ball to move constantly at 300 for the 20 seconds, then revert back to 200 once the timer is done?
How do I get the ball to continue along it's current path but change speeds to 300 instead of shooting over to the right?
I've got the slow down effect figured out (I just changed the max speed on the ball based on a game.attribute).
Here's how I have it set up:
A power up hits the Player Paddle. A game.attribute called game.PickUpNumber (integer) is changed to 4. On the ball I have a rule that If game.PickUpNumber = 4, INTERPOLATE attribute self.motion.Max Speed to 300, change velocity to 300; otherwise change attribute self.motion.Max Speed to 200.
RULE: If PickUpNumber >= 1 AFTER 20 seconds change attribute to 0.
The issues that I'm having are;
1) The balls don't always move at a speed of 300.
2) the ball will change velocity at 0 degrees (to the right).
How do I get the ball to move constantly at 300 for the 20 seconds, then revert back to 200 once the timer is done?
How do I get the ball to continue along it's current path but change speeds to 300 instead of shooting over to the right?
Comments
Have you tried using your own attribute to be "speed" and change and set speed to it?
Finally- you don't need to bump after 45 min. Patience grasshopper.