Day/night cycle using sin & cos of timer. The lighting is good but as you can see I'm having a tough time with the rotation of the sun and moon. It's getting there...currently I have to figure out why they go clockwise sometimes in their cycle. Eventually I figured out why but I can't fix it...
I made this project in response to the prompt for Challenge #10-time blocks- of the Getting Unstuck initiative from the ScratchEd Team: https://gettingunstuck.gse.harvard.edu This looks simple but was hard to figure out! I wanted to use timer to control a day/night cycle with the sine function. At first I thought there wasn't a sin block but then I found it. Then I had to figure out how to keep the tint of the sky, made by drawing with a big pen, in a positive value, as well as the brightness of the desert sprite. So I realized the absolute value block came in handy there. Math is hard so this was a good challenge!