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
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...
Posts: 82
Reputation: 1,049

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 13 guests