Bouncing ball

A sprite that flies in a straight line, for balls, lasers and asteroids. It only bounces when a rule tells it to.

Chocobreak โ€” NutHouse
The properties panel for the Ball in Chocobreak, showing the Bouncing ball movement with Speed, Wobble when bouncing and Starts moving
The Ball in Chocobreak starts on an up diagonal.

What it does

Flies in a straight line. Use a Bounce action to bounce it. That last part surprises everyone. The ball does not know about walls or bricks. It flies on until a rule says Bounce, and then it bounces away from whatever it hit.

This is on purpose. It means you decide what bounces and what does not. A ball bounces off a brick and smashes it. A laser does not bounce off an alien. It destroys it.

What the settings mean

SpeedHow fast it flies, 0 to 100. The library Ball starts at 30.
Wobble when bouncingMakes bounces a little random, so the ball does not get stuck going the same way for ever.
Gets itself out of cornersIf it wedges in a corner, it nudges itself free. Advanced and Expert only.
Angles8 (chunky), 16 or 32 (smooth). Fewer angles feel more old-school. Advanced and Expert only.
Starts movingWhich way it sets off: Any direction, Up diagonals, Left or right or Down diagonals.
Moving when the level startsUntick it and the ball waits until a rule says Start moving.

Library sprites that come with it

Ball, Laser (flies straight up), Pipes (slide to the left) and Asteroid. They all show the โžก Flies straight chip.

Rules that go with it

  • Bounce makes it bounce away from what it hit. Pair it with Collides with another object or Collides with a background.
  • Leaves the play area catches a ball going off the bottom. Take a life away.
  • Set speed speeds it up as the game goes on.
  • Set direction turns it a certain way, for a serve.
WhenBall collides with Brick
DoDestroy BrickBounce BallAdd 10 to the score

Still stuck?

Try the Chocobreak tutorial, open a sample game and read its rules, or look at the questions people ask.