arrow_back Gatorade Shower (Challenge)
Have you ever seen players dump a sports drink onto the coach at the end of a game? It’s a much deserved victory celebration, even if it is ice-cold. This add-on will animate a Gatorade shower on your favorite athlete. First, unhide the gatorade sprite and make this sprite follow your mouse pointer, then start the pouring animation. Start the sprite's stack with a "when flag clicked" block. Make the gatorade sprite follow the mouse using a "forever" loop from the control menu and a "go to mouse pointer" block from the motion menu. Place a “wait” block before the forever loop to wait before the sprite starts following the mouse. Eventually, the gatorade sprite should pour on the athlete, rather than just moving around. To make this happen, use an “if” block with the condition that will make the sprite pour - in this example by clicking the mouse.
Each of the costumes required to animate the gatorade shower exist in your program. You can switch costumes between these using “next costume” or “switch costume to” blocks.
Adding a “wait” block may help timing between showing these costumes.
To make the gatorade sprite stop following the mouse pointer, from the control menu, use the “stop” block after the sprite is finished switching costumes.
You may also wish to set the gatorade’s starting and ending location using the “go to x y” block. Try to find where to put each of these blocks!
Here’s the game plan: Program the Gatorade sprite to look like it’s giving the athlete a Gatorade shower. Have fun!