Skip to content

Please update your browser

Your browser version is not supported by this site. CS First may not work properly. Learn more

arrow_back Going through the Motions

Transcript

In this prompted add-on, you will animate the pitcher to look like he or she is throwing the ball. Click on the pitcher sprite, then on the costumes tab. The pitcher sprite has two costumes, one holding the baseball and the other after throwing it. The ball sprite knows when it is about to move. The pitcher sprite does not. Make the ball *broadcast* when it is ready to move, so the pitcher knows when to change costumes. To animate the pitcher, switch costumes to the one that looks like the ball was just thrown, and wait before returning to the previous costume. Think about what blocks would make this happen.

Here’s the game plan: Broadcast to the pitcher when it’s time to change costumes. Change costumes to make it look like the pitcher is pitching.

Choose an Add-On
Celebration
Program a celebration for when the batter achieves a perfect batting average.
Over the Plate
Make the baseball look more realistic as it approaches or moves away from the plate.
High Score
Tell the batter if it has beaten the best batting average so far.
Out of this Ballpark
Program the sound of a cheering crowd.
In the Big Leagues
Make the pitcher tell a story before the game starts.
Going through the Motions
Animate the pitcher so it looks like he or she is moving.
arrow_backward Back
Next arrow_forward
Instructions
  1. Choose an add-on and click "Watch" to learn how to customize your project.
  2. When you finish, come back to the add-ons screen, and try another add-on!