Click the green flag and watch the magic happen. Sure, the magic won't happen for a minute or so, but it'll happen. Just be patient.
I'm testing this day/night cycle for my new upcoming game Z-World: Uprising (release date tbd). Please let me know what you think in the comments below. Your feedback is much appreciated! How it works is I made a giant sprite that constantly goes up (to give the feeling of the sun rising from the east and setting in the west) and once the sprite reaches the other black part / the bottom end of itself, it remains for a solid minute and lets the moon cycle commence before beginning again. I plan on adding a total "Days Survived" cloud variable to the game to give it a feeling of survival.