Supplies
Summary
2 counters, 2 repeaters, 1 lifecycle, 2 overlays, black barrier
here is the finished product
First, take the counter, a repeater, and the lifecycle, and arrange them as shown in the first diagram. Wire the lifecycle to the repeater like this:
then, set the repeater settings to this
Oh, sorry it isn’t shown but the time to stop is 10 seconds.
Wire the repeater to the lifecycle like this
Start repeater>>>>>>> decrement counter.
The counter should have a target for zero.
Now, put a barrier over the entire zone you are using. Set it to collision off, and make it black with a .50 transparency, and off upon game start. wire the repeater to the barrier
target reached>>>>>>>> show barrier
now, when you run the game, after the counter counts down to it’s designated number, the barrier should activate and it will be nighttime!!
But how do you get it to be day again?
First, take another counter, and repeater along with the two overlays.
wire the first counter to the second repeater, these should have the same settings as the first ones.
Target value reached >>>>> start repeater.
After that, wire the second repeater to the second counter with these settings
repeater runs task>>>>>> decrement counter.
wire the second counter to the first repeater
target value reached>>>>>>> start repeater. This will start progressing towards a daylight cycle. next set the first overlay with this setting.
and the second one with these settings
These will say whether it is day or night.
Now, wire the first counter to the first overlay (the one for nighttime.)
Target value reached>>>>> hide overlay
and the second counter to the second overlay like this.
Target value reached >>>>> show overlay
also wire the second counter to the barrier
Target value reached >>>>> deactivate barrier.
Remember, if you get stuck, just look at the diagram at the very beginning of this guide.
Now wire the first counter to the second overlay
Target value reached>>>>>>show overlay.
Wire that same counter to the second repeater
Target value reached>>>>>> start repeater
At this point, I realized a glitch in my system. here is the new diagram.
You need to wire the counters to each other
Target value reached>>>>>>> reset counter
copy that vice versa.






