🟡Door

Trigger to play an open or close animation, or rotate the Object 90 degrees and back.

COPY/PASTE PARAMETERS

New in GM 0.11! Right click on a behaviour or component to copy. Then open an object, add the same behaviour or component, and right click it to paste identical parameter settings.

GAME MAKER 0.9 ENHANCEMENT

Instead of triggering a door to open or close with the same message(s), a door can now be triggered with different open and close messages.

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

USE THE RIGHT TOOL FOR LOGIC STATES

A new [SP] and [MP] Switch component can be used to trigger two states and send a message for each state.

Previously, Door behaviour was used for this. It is now only available as [MP] because a [SP] version of Door behaviour would cause collision issues in multiplayer games.

Door [MP]

  • Rotate the Object 90 degrees or set any of the Object's built-in animations to play for "Open" and "Close" states

  • "Open" mode temporarily removes the Object's collisions

  • Interact or use any message to trigger a door to open and any message to trigger it to close (collecting a key, detecting a pickable key, etc)

Communications

Inputs:

Player Interaction One or more Messages to open One or more messages to close

Outputs:

Play animation, Message sent on Open Play animation, Message sent on Close OR Rotate 90 degrees and back

Common Uses

  • Simple door with Interaction

  • Intermediate to advanced door logic sequences for dungeons or puzzles

  • Rotating an Object 90 degrees

Parameters

OptionsDetails

Message Required to Open - one or more messages can trigger the door to open Message Required to Close - one or more messages can trigger the door to close

Opening Mode

  • Rotate - rotates the object with Door behaviour 90 degrees when opened and back when closed

  • Animate - plays door animations when messages trigger a change in state

Opening Animation - select the asset's animation you wish to display when you trigger the door to open with message Closing Animation - select the asset's animation you wish to display when you trigger the door to close with message

Starting State - set the state of the Object as Closed or Opened at the start of the Experience.

Message on Open - a message sent when the door opens Message on Close - a message sent when the door closes

Broadcast Type

  • All - all actors and systems

  • Everyone in Range - all actors in range

  • Specific Tags in Range - all actors in range with specific tags

  • Selected Actors - specific actors in the Experience

  • Rules - the Game Rules system

  • Objectives - the Quest system

  • Self - this object

Broadcast Range (slider) - move the slider or enter a distance in blocks from the anchor point of the object

Last updated

Logo

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

#123: GM 0.11 update - do not publish until public release

Change request updated