by Shadowdarke
Two ways to do day/night cycles, simple weather displays, and a demonstration how to change a turf from one area to another. [More]
To download this demo for your Linux/Mac installation, enter this on your command line:

DreamDownload byond://Shadowdarke.OutsideArea##version=1

Emulator users, in the BYOND pager go to File | Open Location and enter this URL:


Version 1
Date added: Sep 5 2001
Last updated: Jul 29 2009
4 fans
Outside Area Demo demonstrates how to implement day/night cycles two ways, with overlays or with the luminosity variable. This demo also shows how to change a turf from one area to another.

The area overlay day/night cycle is much faster than turf overlay day/night systems, accomplishing the same effect with a couple lines of code and no lag producing loops. Iíve tested it with maps as large as 500x500x5 with no lag at all.

Version 1 includes a simple weather display system. Also, the overlay daycycle() has been modified to allow other area overlays to persist when it changes to day or night.


Sanox2u: (Jun 27 2012, 1:15 pm)
Thank you very much, this is helpful and very impressive!