How do I detect if is day/night?

Get help using Construct 2

Post » Fri Jul 29, 2016 6:08 pm

The title are explaining.
How can I achieve it?
Thanks in advance! :)
Liked something I say?
Tip. My Bitcoin address: 1PLaeKmXQ8vEdGGJqXMq3KyB8hxeddxeSv
B
28
S
9
G
4
Posts: 359
Reputation: 4,246

Post » Fri Jul 29, 2016 7:29 pm

Didn't got it. Your game has a day/night system or are you talking about real world?
Riding the Rainbow for all the eternity
B
10
S
5
Posts: 31
Reputation: 934

Post » Fri Jul 29, 2016 7:49 pm

cenowador wrote:Didn't got it. Your game has a day/night system or are you talking about real world?


My game didn't have a day/night system, I'm talking about Real Time Clock.
Liked something I say?
Tip. My Bitcoin address: 1PLaeKmXQ8vEdGGJqXMq3KyB8hxeddxeSv
B
28
S
9
G
4
Posts: 359
Reputation: 4,246

Post » Fri Jul 29, 2016 8:54 pm

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
Riding the Rainbow for all the eternity
B
10
S
5
Posts: 31
Reputation: 934


Return to How do I....?

Who is online

Users browsing this forum: Google [Bot] and 31 guests