#help me with day and night cycle

2 messages · Page 1 of 1 (latest)

torn plaza
#

First off define your constant variables like the time interval at the top of the script

#

What you can do here is have two different time increments, one for the night, one for day, and then in your updateTime() function just check if it's night or day and update it accordingly