In this add on, you’ll add a sunrise or sunset to your story.
To start, click on the stage.
If you decide to change your backdrop, note that this add-on works best on backdrops thatappear to be outside, like the boardwalk or the city.
Next, drag out a “change color effect” block.
Select “brightness” from the dropdown menu.
If you click on the block, the stage gets brighter.
To make the stage continuously get brighter, drag out a “repeat” loop.
To make the stage get brighter gradually, like a real-life sunrise, tinker with thevalues in the “change effect” block and the “repeat” loop.
A larger number in the repeat loop and a smaller number in the “change effect” block slowsdown the effect, while a smaller number in the repeat loop and a larger number in the“change effect” speeds it up.
This example uses 0.5 in the “change effect” block.
To make the stage go from night to day, add a “set brightness effect” block and a “whenflag clicked” block to the top of this code stack.
Try out different values in the “set brightness effect” block so that your stage won’tbe too dark, but it will still look like nighttime.
Using a positive number in this block makes the stage brighter.
Try using a negative number to get your desired effect.
This example uses negative 80.
Test your code, and make sure the loop repeats changing the brightness effect enough times.
This example uses 150 in the “repeat” loop.
You created a sunrise!
To make the stage appear to have a sunset, change the value in the “set brightnesseffect” block to a positive number so that the stage starts off bright, like the daytime.
Then, change the value in the “change brightness effect” block to a negative number, likenegative 0.5, so that the stage gets darker, like the sun is setting.
Tinker with the values in these blocks to adjust the brightness of the stage and thespeed of the sunset.
It’s up to you!
Feel free to add a “wait” block before the “repeat” loop so the sunrise or sunseteffect doesn’t happen so quickly.
Now, it’s your turn.
Code the stage to have a sunrise or sunseteffect using a “when flag clicked” event, a “repeat” loop, a “set effect” blockand a “change effect” block.