Logic Tutorial: Simple Day/Night Cycle

From Kogama Wiki
Jump to: navigation, search
Simple Climate Change

This logic will allow you to set the sky to change between day and night time in a set cycle.

To construct this logic system you will need:

Steps[edit | edit source]

1. Pulse Cube and Negate Cube[edit | edit source]

Day Preset Example
  • Place a Pulse Cube and a Negate Cube.

You can find these in the inventory in the advanced logic tab.

  • Click with the right mouse button on the Pulse Cube and go to the settings.

The Enabled Time is the duration of the night (in seconds).

The Disabled Time is the duration of the day (in seconds).

2. Skybox Cube[edit | edit source]

Night Preset Example
  • Place two Skybox Cubes.

You can find these in the inventory in the logic tab.

  • Click with the right mouse button on the Skybox Cube and go to the settings.
  • Change the colors to bring you a night theme for one Skybox Cube, and a day time theme for the other (Presets examples beside).
  • Connect the Blue Logic Connector of the Pulse Cube to the Red Logic Connector of the Negate Cube
  • Connect the Blue Logic Connector of the Pulse Cube to the Night Skybox Cube
  • Connect the Blue Logic Connector of the Negate Cube to the Day Skybox Cube

Explaining[edit | edit source]

The pulse cube will send energy in intervals to the Skybox Cube and Negate Cube, and thus toggling between the Day skybox and Night Skybox

Video[edit | edit source]

Other Uses[edit | edit source]

You can also use this logical system for