βšͺDoor

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

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.

​

  • 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)

PERFORMANCE TIP In multiplayer Experiences, there are two layers of logic that will not communicate with each other: singleplayer [SP] and multiplayer [MP]. For best performance, only apply [MP] behaviours and components to objects that MUST be synchronised to all players (or communicate on that layer), and maximise use of the [SP] (Client Only) layer.

USAGE TIP This behaviour will not communicate with Quests or [SP] behaviours or components. It can be used in singleplayer Experiences.

Common Uses

  • Simple door with Interaction

  • Intermediate to advanced door logic sequences for dungeons or puzzles

  • Rotating an Object 90 degrees

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.

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

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.