Speed up the shot?

DrGlickertDrGlickert Member Posts: 1,135
edited November -1 in Working with GS (Mac)
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?

Comments

  • DrGlickertDrGlickert Member Posts: 1,135
    Anyone?
  • heathccheathcc Member Posts: 113
    I would use my own attribute variable and not MaxSpeed, but only because I'd be afraid that I wasn't changing it and thus other velocity assignments would conflict.

    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.
  • DrGlickertDrGlickert Member Posts: 1,135
    heathcc - I do have a BallSpeed game.attribute. I've been experimenting with different ways to do this, but speeding them up just doesn't seem to help.
  • forkliftforklift Member Posts: 386
    If max speed is checked, it will never go past what value is in max speed. I'm not sure if you can turn that checkbox on and off with a rule in gamesalad.
Sign In or Register to comment.