In this add-on, you’ll program your athletes to get active by showcasing their moves allover the place. First, make the athlete1 show off why it hasthe best moves of the entire crew. Click on the athlete1 sprite. The “move” blockfrom the "motion" menu allows your sprite to go from place to place.
Drag out this block. Right now it says “move 10 steps.” Click on this block to see whathappens. Great! Athlete1 moved 10 steps forward. If you keep clicking it, athlete1 continuesto move forward. Your sprite doesn’t always have to move10 steps. To change how far your sprite moves, change the value in the white bubble to abigger number. In this example, the sprite moves 20 steps at a time.
Drag out another “move” block. For this block, change the value to negative 20. Clickthis block. It reverses the direction of the sprite.
Next, program the sprite to move back and forth while changing costumes. Snap both “move”blocks together. Place them inside the “repeat” loop in your original code, and test yourcode by clicking the stack. The two blocks run so quickly that you can'tsee the sprite move. Drag out a “wait” block from the control menu to fix this. Placethe “wait” block between the two “move” blocks.
Test your code! When you click on the block stack, the sprite changes costumes, movesforward 20 steps, waits 1 second, moves backward 20 steps, waits, then does another move. Tinkerwith the values in these blocks to get something you like.
Here's the gameplan: Add two “move” blocks to the “repeat”loop. Then, add a “wait” block between thesetwo blocks.
As an added bonus, use multiple “move” and “wait” blocks to make your athleteperform various moves across the stage.
Choose an Add-On
Add music that will play while the athletes showcase their moves.
Showcase your Moves
Program the athletes to get active by moving around the stage.
Make the sprites change colors similar to how athletes wear different jerseys.
In the Zone
Program the sports commentator to give the athletes a performance boost.