Today, you programmed a winning condition for your game. Now, take your project a stepfurther by adding a crazy winner celebration. This video will give you a few ideas for awinning celebration, but feel free to come up with your own ideas.
To make the sprite cheer, use a “say” block.
Make the sprite change colors when it wins with a “change color effect” block. Clickthe blockstack to test. Cool! The sprite says the cheer and changes color.
Program the sprite to repeatedly change colors with a repeat loop. Click the blockstack totest. Awesome. Tinker with the value in the repeat loop.
Make the sprite jump to random places on the screen with "go to" and "pick random" blocks.
Test your code often so you can find and fix any bugs early.
Create a stamp of the sprite with a "stamp" block.
If the sprite has multiple costumes, make it look like it’s dancing using a “repeatblock,” “next costume,” and a “wait” block.
These are just a few ideas to get you started. Feel free to come up with your own winnercelebrations. Now, it’s your turn:Program the sprite to celebrate if it wins the game.
Consider programming the sprite to cheer, repeatedly change colors, jump to random places,or stamp. Use your creativity to create your own uniquewinning celebration!
Choose an Add-On
Time to Celebrate!
Create a wild winning celebration using some of these ideas.
Make your game more challenging by creating moving platforms.
Create a shrinking platform to increase your game's difficulty.
Splash! You Lose
Create a way for the player to lose in your game.
Add Some Tunes
Add some background music to your game.
Bug Fix: Land on Your Feet...or Not
Fix the bug that allows things other than a sprite's feet to keep it on a platform.