8️⃣Weather Switcher

Introduced in Game Maker 0.8. Overrides global light ambience set in the Gameplay menu.

Build Singleplayer & Multiplayer Logic - about [SP] or [MP] behaviours or components

Changes the ambience of the environment for ALL players simultaneously:

  • colour of sky and environmental light

  • position of the sun and moon (time of day)

  • density of clouds

  • brightness of stars

Common Uses

  • Instant change of weather/time settings using any Message

  • Gradual change of weather/time settings over a specified time period by sending a special Message, WeatherFade, to this object

  • Cycles of change from day/night when combined with other logic such as Timed Events

Parameters

If the Weather Switcher has triggers influenced by player interaction, then the actions of ALL players can trigger the Behaviour.

APPLYING THE BEHAVIOUR

Because this Behaviour is Multiplayer, make sure to select ‘Synchronized’ in the Behaviour Panel when adding it to an actor.

It’s recommended to apply this Behaviour to a Logic Asset. This makes them easier to identify and reduces the face count in an experience, which improves performance.

This Behaviour doesn’t work with the Toggle component.

PROPERTIES

WAIT FOR MESSAGE

If Wait for Message is set to FALSE, then the Behaviour will be active as soon as the experience loads.

If Wait for Message is set to TRUE, then the Behaviour will be inactive until triggered, and Message to Switch will become available as a field.

Message to Switch

To set an activation message, either create a new one by clicking the field, typing the desired message and clicking enter, or selecting an existing message from the drop-down list.

PRESETS

The Weather Switcher Behaviour will open set to a Preset by default and can be changed to a range of themes from Desert, Neutral, Night, Noon, Sunrise, to Overcast.

There is also the option to create a Custom Weather Switcher. When this is selected, a range of options to customise the colour, light, sun position, moon position, and star intensity will become available.

CUSTOM WEATHER SWITCHER

Presets must be set to CUSTOM for these variables to appear in the Properties Panel.

SKY

The Sky Parameter has variables that affect the colour of different areas in the Sky Box.

The Skybox is a cube-shaped object that surrounds a Land in Game Maker and is used to simulate an outdoor environment.

Sky Top

This parameter sets the colour for the uppermost section of the skybox, starting at the horizon line and moving up to cover the whole area directly above the experience.

Sky Middle

The Sky Middle colour settings affect the horizon line of the skybox and blend between Sky Top and Sky Bottom.

Sun and Moon colour settings will also influence the look of this region of the skybox.

Sky Bottom

This parameter sets the colour for the lowermost section of the skybox, starting at the horizon line and moving down to cover the whole area directly below the Experience.

SHADOWS

Shadow Colour

This variable defines the colour of shadows cast by objects in an experience when light is blocked by the object.

Clicking on the colour bar in the properties panel will open a pop-up where the values can be set to match the desired look of the game.

The shadow colour can be set using the available sliders, or if a colour pallet has already been defined for an experience, a Hex code can be pasted into the available field.

Setting Shadow Colour to white will result in no shadows being cast.

The chosen colour will also affect the colour of objects. The impact of the colour will change depending on how dark or light the surface is.

Shadows can be used to create a sense of realism, depth and atmosphere, for example, darker shadows could be used to accentuate a horror experience.

Shadow Intensity

Shadow intensity refers to the darkness or strength of the shadows generated by Blocks and Objects in the experience.

The value of Shadow Intensity can be set between 0.00 to 1.00, with 0 representing no shadows and 1 representing deep shadows.

For a standard shadow setting, try using Dark Grey (HEX Code #A9A9A9) as a Shadow Colour with a Shadow Intensity of 0.6.

SSS Colour

This parameter sets the colour of Sub Surface Scattering light in clouds.

This appears as a halo effect but will only be visible when Sub Surface Scattering Intensity has been set to a value higher than 0.00.

PREVIEW

Clicking PREVIEW will generate a live view of the current Weather Switcher in the Edit Mode of the Game Maker.

Each time an adjustment is made to the Weather Switcher, the PREVIEW button will need to be clicked to update the scene.

RESTORE

Click RESTORE will toggle the scene to the Default Ambience setting of the scene.

The Restore button doesn’t erase custom settings on a Weather Switcher. Clicking Preview again will update the scene with the selected Weather Switchers parameters.

Last updated

Logo

Copyright © 2012- 2023 The Sandbox. All Rights Reserved.