Part 5: Bouncing and the edges
Steps 18 to 20. Three more rules: bounce off the paddle, keep the ball on the screen, keep the paddle on the screen.

What this part teaches
The same rule shape, used three times. You already know “Ball collides with” from Part 4. Now you meet a second condition, Leaves the play area, and learn that a condition can have settings: here, which edges count. Leaving the bottom edge out on purpose is how losing a life will work later.
Step 18: Bounce off the paddle
- Press + New event, click Ball, then Collides with another object, pick Paddle and press Add.
- In the new row, click under the Ball and choose Bounce.
Step 19: Keep the ball on the screen
- Press + New event, click Ball, then Position, then Leaves the play area.
- In the settings, tick only Top, Left and Right. Untick Bottom. Press Add.
- In the row, make the Ball Bounce.
Why not Bottom? Because a ball that escapes past the paddle should cost a life, not bounce back. Part 6 writes that rule.
Step 20: Keep the paddle on the screen
- Press + New event, click Paddle, then Leaves the play area. Tick only Left and Right. Press Add.
- In the row, make the Paddle Stop.
Stop, not Bounce: a paddle that bounced off the wall would slide back by itself. Stop puts it back at the edge and holds it there until you press a key.
The edges
| Top | The ball bounces down again. |
|---|---|
| Left, Right | The ball bounces back across. The paddle stops. |
| Bottom | Left unticked for the ball. Falling out at the bottom is how you lose. |
Next: Part 6: Score and lives.