Day and night cycle
Breadwinner: Sandwich Master » Devlog

The Problem:
I needed a day and night cycle that would also stop at a certain time at night, this way the player can still see even after the day is over. This will allow the player to get more things done at night. I was having problems getting the directional light to stop moving at a certain time.
The Problem Solution:
The solution to this was I needed to go about this in a different way. I had to make a daytime variable to check rather it is daytime or not, as well as a variable that is counted as time. After changing the implementation, I managed to get the light to stop by making the rotation speed 0 when the time variable hits a certain number.
Get Breadwinner: Sandwich Master
Breadwinner: Sandwich Master
Status | In development |
Author | 2411BreadBox |
Genre | Simulation |
Tags | Casual, Management, Working Simulator |
More posts
- item Spawner/PC Author: Evan King Posted on 11/21/2024Nov 22, 2024
- Clock in/out systemNov 22, 2024
- items-author: Evan King Posted on 11/15/2024Nov 15, 2024
- Problems with Animation, Author: Sean SzalasnyNov 09, 2024
- Movement, author: Evan King, Posted on 11/8/2024Nov 08, 2024
Leave a comment
Log in with itch.io to leave a comment.