This snazzy add-on will show you how to add camera flashes to your post-game interview,much like you’d see in real life. In your project, you’ll employ a clever trick tomake it seem like a camera is flashing. Select the stage. You’ll use an effect tosimulate a camera called "brightness." From the looks menu, drag out the "change effect"block, then change the dropdown to "brightness." Wrap this block with a repeat loop. The brightnesseffect can go up to 100, so to make the flash, use the repeat loop to maximize this effect.
Tinker with the values in the "repeat" block and the "change effect" block, and test byclicking to see how bright the background gets. To clear the effect, click the stopsign. This example uses 5 for the "repeat" loopand 20 for the "change effect" block. Once you put in the values you like for your project,right-click the loop, select "duplicate," and snap the new, duplicated code below thefirst loop. This second loop does the reverse of the firstloop. Think of it as an "unflash." To make the brightness decrease until the scene isback to normal, make the number in the “effect” block negative.
Click the stop sign, then test the code. The background flashes and goes back to normal.
Next, place both these loops in another "repeat" loop. Then, insert a wait block at the topof the new loop. From the operators menu, snap a "pick random" block into the “wait”block. This outer loop will make the flash happen more than once.
Tinker with *all* of these values – change the length of time between flashes, how manytimes flashes occur, or how bright they look. Finally, place this new code stack at theend of your interview. Use an event or "broadcast" and a "when I receive" block to start it off;it’s up to you! Now you've got a cool flash effect that makes it look like your athleteis being photographed! Here’s the gameplan:Make two "repeat" loops change the brightness of the background.
Place the loops in a bigger "repeat" loop with a "wait" and a "pick random" block.
Place the new flash code at the end of the interview.
Choose an Add-On
Make the user answer an interview question!
Show off the athlete's coolest move of the game.
Prompt your athlete to say random things!
Program a sprite to pop onto the stage and interrupt the interview.
Gatorade Shower (Challenge)
Dump Gatorade on your athlete's head.
Have fans take pictures of the victorious athlete.