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

Choose an Add-On
play_circle_filled
Celebration
Program a celebration for when the batter achieves a perfect batting average.
arrow_forward
play_circle_filled
Over the Plate
Make the baseball look more realistic as it approaches or moves away from the plate.
arrow_forward
play_circle_filled
High Score
Tell the batter if it has beaten the best batting average so far.
arrow_forward
play_circle_filled
Out of this Ballpark
Program the sound of a cheering crowd.
arrow_forward
play_circle_filled
In the Big Leagues
Make the pitcher tell a story before the game starts.
arrow_forward
play_circle_filled
Going through the Motions
Animate the pitcher so it looks like he or she is moving.
arrow_forward
  • 1. Introduction to Variables
  • 2. Throw the Baseball
  • 3. In the Strikezone
  • 4. What's the Count
  • 5. Baseball Average Calculator
  • 6. Add-Ons
  • 7. Reflection
  • 8. Wrap-up: Batter Up
  • 9. Wrap-up: Share Your Project
  • 10. Wrap-up: Show Your Project
arrow_backward Back Next arrow_forward
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.

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!