🟢Button
This legacy behaviour was moved to a component in Game Maker 0.10 for to improve interconnection of logic. Documentation is being updated.
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.
Send a message when a player interacts with an object.
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.
Button [SP] [MP]

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
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
Was this helpful?