How do I figure out a 24 hr day night cycle

Get help using Construct 2

Post » Sat Sep 02, 2017 5:16 pm

Hello everyone,

I'd like to setup a real time 24 hour day night cycle by taking the current time (from a 24 hr clock but maybe it's easier with a 12 hr clock) and syncing it with how dark/light the layout should be.


I found an example of a day/night cycle using sine https://www.scirra.com/forum/day-to-night-cycle_t72435?start=20
which I've used as a base (because I believe that's how F.Lux works) but I haven't been able to figure out how plug in my in game clock and have it work.



I read in the manual that sine works in degrees, but I'm working with seconds and have no idea how to convert that into the Period of sine, if that's even what I should be doing...
B
10
S
2
Posts: 80
Reputation: 995

Return to How do I....?

Who is online

Users browsing this forum: evillair and 12 guests