Worksheet 5 - Motion and Event Blocks

Worksheet 5 - Motion and Event Blocks

Assignment Task:

Create a Bouncing Ball Simulation using the Glide Random Block, Point in Direction, and Events.

Steps:

  1. Choose a Ball Sprite (e.g., basketball, soccer ball, or any round object).
  2. Set Initial Position: Move the ball to the center of the stage (X: 0, Y: 0).
  3. Set the Ball’s Direction: Make the ball face a random direction. (Pick any random 0 to 360)
  4. Make the Ball Move: Use the Glide Random Block to move the ball smoothly around the stage.
  5. Add Interactivity: When the sprite is clicked, it should change direction and glide again.
  6. Run the project and observe how the ball moves randomly and changes direction when clicked.

Expected Outcome: The ball will continuously glide to random locations and change direction when clicked.

Bonus Challenge:

  • Add sound effects when the ball moves.
  • Change the speed of the ball by modifying the glide duration.