How to create day and night in Flock XR

Contents

    To create day and night in Flock XR you could use the light intensity block or use two sky blocks.

    Choose a method

    There are two common ways to create day and night in Flock XR:

    – Use the Light Intensity block to gradually brighten and darken your scene
    – Use multiple Sky blocks to switch between different sky colours and environments

    The light intensity method creates smoother lighting transitions, while the Sky block method is simpler and more visual for beginners.

    Method 1: Using the Light Intensity block

    1. Open the Scene > Effects category
    2. Add a Light Intensity block
    3. Set the value between 0 and 1 and choose your colours (1 is very bright and 0 is completely dark.)
    4. Use a Forever block with two For blocks to gradually change the value over time
    5. Add Wait blocks to control the speed of the transition

    A forever loop that is used to simulate night and day.

    Method 2: Using Sky blocks

    1. Add a Sky block for daytime colours
    2. Add a Wait block
    3. Add another Sky block with darker night colours
    4. Add another Wait block
    5. Place everything inside a Forever block

    👉 How do code blocks work in Flock XR?

    👉 How do I use the sky block in Flock XR?

    👉 How do I use materials in the Sky block?

    Updated on May 6, 2026