Day and night cycle based on real time

Description: Have idea for a script, but you can't make it? Post it here!
Moderators: Yoshi021, Lx Xzit, 5438A38A, Semi-moderatos, Moderators

Mushroom King
Topic author, Marquis
Marquis
Mushroom King
Topic author, Marquis
Marquis
Reputation: 35
Posts: 157
Joined: 31 Dec 2015

Post #1by Mushroom King » 19 Aug 2017, 11:38

My request if a script which takes account of the actual time from the computer clock to change a level like different background to simulate dawn, day, dusk and night or even activate some specific event like the appearance or disappearance of a type of enemy between one hour at another hour.

Dry Bones M
Good citizen
Good citizen
Avatar
Dry Bones M
Good citizen
Good citizen
Age: 18
Reputation: 18
Posts: 25
Joined: 1 Jul 2017
Location: Germany

Post #2by Dry Bones » 19 Aug 2017, 17:25

Mushroom King wrote:My request if a script which takes account of the actual time from the computer clock to change a level like different background to simulate dawn, day, dusk and night or even activate some specific event like the appearance or disappearance of a type of enemy between one hour at another hour.

I have made a Day-Night System using the sysval(hour):
Spoiler
https://www.dropbox.com/home?preview=Day-Night.zip

There are four Backgrounds, which represent the Daytimes:
    The Morning BG can be seen between 3.00 AM and 8.59 AM(Default);
    The Noon BG can be seen between 9.00 AM and 2.59 PM(Default);
    The Evening BG can be seen between 3.00 PM and 8.59 PM(Default);
    The Night BG can be seen between 9.00 PM and 2.59 AM(Default).
Last edited by Dry Bones on 21 Aug 2017, 0:32, edited 1 time in total.
"Reality is merely an illusion, albeit a very persistent one." - Albert Einstein


My largest Project (to get a better view of the image, click on it (it's too large to be inserted here)):
Spoiler
Image


#RemasterThousandYearDoor

Mushroom King
Topic author, Marquis
Marquis
Mushroom King
Topic author, Marquis
Marquis
Reputation: 35
Posts: 157
Joined: 31 Dec 2015

Post #3by Mushroom King » 19 Aug 2017, 20:32

Thanks you.
I will try it!

Edit: Okay, it seems to be impossible to download from Dropbox. Can you please put the archive in Mega or Mediafire? Or maybe it's the link being wrong.

Dry Bones M
Good citizen
Good citizen
Avatar
Dry Bones M
Good citizen
Good citizen
Age: 18
Reputation: 18
Posts: 25
Joined: 1 Jul 2017
Location: Germany

Post #4by Dry Bones » 19 Aug 2017, 20:46

Mushroom King wrote:Thanks you.
I will try it!

Edit: Okay, it seems to be impossible to download from Dropbox. Can you put the archive in Mega or Mediafire?

Yes, here you go:
http://www.mediafire.com/file/o9qswwcgbbrt7cm/Day-Night.zip
"Reality is merely an illusion, albeit a very persistent one." - Albert Einstein


My largest Project (to get a better view of the image, click on it (it's too large to be inserted here)):
Spoiler
Image


#RemasterThousandYearDoor

Mushroom King
Topic author, Marquis
Marquis
Mushroom King
Topic author, Marquis
Marquis
Reputation: 35
Posts: 157
Joined: 31 Dec 2015

Post #5by Mushroom King » 19 Aug 2017, 21:09

Thanks again. I was able to download it this time.


Return to “Script requests”

Who is online (over the past 5 minutes)

Users browsing this forum: 1 guest