9️Collectable

Can be collected by the player and put it inside your Inventory.

GAME MAKER 0.9 ENHANCEMENT - Message on Equip

If the object with the Collectable component is equipment, a new Message on Equip parameter is available. Once the item is collected, every time it is equipped by the player, the message you specified in that parameter will be sent.

Allows an object to be collected by players from interaction or collision.

Send messages and trigger events. For example: Pick up a key and it opens a door. Game Maker 0.9 introduces a new Message on Equip parameter for left and right hand items.

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 The [MP] version of this component will not communicate with Quests or [SP] behaviours or components. It can be used in singleplayer Experiences.

Common Uses

  • πŸ†• Sending a message whenever an equipment asset has been collected and equipped in the left or right hand slots.

  • Collecting Objects as part of a story or quest (materials, special items, etc)

  • Rewarding players gradually for risk-taking by allowing them to access increasingly beneficial Equipment to use

  • Motivating players to explore by finding hidden items and/or collecting all items

  • Creating what feels like an economy to purchase items, though the player Inventory currently does not track items being consumed

  • Any game with a mechanic to make Objects disappear upon collision (which will add up in the player Inventory)

Communications

Inputs:

Outputs: Message sent upon collection

Parameters

OptionsDetails

Collect action required - Defines how the collection occurs with collision with the Avatar.

Display Name - Name that's displayed on the object.

Collect Sound - The sound that gets played upon collection.

Collect Message - Message that gets sent out after collection.

Broadcast Type (Everyone In Range) - This option sets your Collect Message to send messages to all objects in range. Tags - Add or remove tags that the Collection should send messages to.

Broadcast Range (slider) - defines the area in which your message broadcaster will send messages. This parameter is visualised with a yellow circle Gizmo that adjusts as you move the slider or change the value.

Duration Type Once - one time Duration - set amount of time in seconds and delay between broadcasts Forever - broadcast forever with a delay between broadcasts

Last updated

Logo

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

Change request #15: 0.9 Draft - DO NOT MERGE UNTIL LAUNCH