The title are explaining.
How can I achieve it?
Thanks in advance!
Didn't got it. Your game has a day/night system or are you talking about real world?
Develop games in your browser. Powerful, performant & highly capable.
My game didn't have a day/night system, I'm talking about Real Time Clock.
Here ya go :3
https://www.scirra.com/tutorials/940/ho ... -a-project
Store the hour in a variable and compare if it's below or above 18h.
There's also this plugin, since the other one you would need to use some tricks cause it returns you the full date, not only the time:
plugin-system-date-and-time_t63492