bouncing the ball

Start a new scratch program.

Choose a new sprite from the file.

Click on Things option.

Choose Beach Ball and press OK.

Follow the instructions given below:

  • when flag pressed
  • repeat until touching mouse pointer
  • wait 0.1 seconds
  • run clockwise 5 degrees
  • move 50 steps
  • if on edge bounce
  • repeat above four steps in between repeat until point

Save the program. Run it by clicking the start button.