➑️Button

This legacy behaviour was moved to a component in Game Maker 0.10 for to improve interconnection of logic. Documentation is being updated.

Send a message when a player interacts with an object.

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

USAGE TIP Button component has a cooldown parameter, Duration, to prevent players from spamming logic triggers. Use this when you want logic to stay active, but not be triggered excessively at once.

Interacting with this button will send a message to all assets within its broadcast range.

Common Uses

  • Send a message to another Object's Toggle Component to activate or deactivate its Behavior (e.g., Platform, Melee Enemy, etc) for a puzzle platformer

  • Apply to Assets such as info panels and trigger the NFT Details Display Component, open doors from a distance, etc.

  • Trigger lights and/or sound to turn on/off

  • Reset logic on a Multiplayer Experience

Communications

Inputs:

Player Interaction (Press E)

Outputs:

Send one message within a specified range

Parameters

OptionsDetails

Message to Send - set a Message to send when players press E and interact with this Object

Broadcast Range - set the distance the Message will reach This parameter is visualised with a yellow circle Gizmo that adjusts as you change the value.

Last updated

Logo

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