I was planning to make two title screens: one for when is day in the actual world that we live in, and another for when it's night. If I get some advancements in this idea I would be glad to post it for the community (will take some time, i'm new in this engine).
You're going to have to presumption/guesswork. After all, my computer has no way of knowing whether it's light or dark outside my window, so unless you try to get into comparing timezones and almanacs (all of which could be altered by the user, anyway) you're just presuming.
But essentially it's pretty simple.
Control Variable -> Script -> new Date().getHours()
That variable will now be a value between 0-23 depending on the system clock. So you could do something like:
Conditional Branch -> previous variable > 18
- do nighttime screen
Else
- Conditional Branch -> that same variable < 7
- do nighttime screen
- Else
- - do daytime screen
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.