Trigger Logic
This activity is included in an 8-part, 1 hour series to learn Game Maker. Short, focused topics with guided practice will give you practical experience building useful logic for creating games.
Last updated
Was this helpful?
This activity is included in an 8-part, 1 hour series to learn Game Maker. Short, focused topics with guided practice will give you practical experience building useful logic for creating games.
Last updated
Was this helpful?
In this activity, you will learn how to set up behaviors and components to create simple logic systems with objects as you explore the basics of communications in Game Maker using messages to create cause and effect.
Open or create an Experience and move to an area with empty space.
Let's turn the grid off and focus on logic.
Some behaviors and components are only available as [MP], which means they are multiplayer synchronized. For this activity, choose [MP] only when a [SP] option isn't available.
Designing gameplay with [SP] and [MP] logic will be explored later.
This activity introduced new tools and concepts to understand objects more and how to make them communicate in custom ways.
In the next activity, you will learn to integrate quests with some of the logic from this activity so you can begin designing a flow for players with clear guidance to play through your Experience.
This activity leaves room for you to test out your own ideas when the player exits the Trigger Volume and the message Day
is sent. Test out custom weather profiles and light colours, too!
Remember that the special message
LightColor
sets transition timing and colour.
Triggering logic is a deep, complex topic. The resources below are beginner friendly so you won't feel overwhelmed. We'll add more to later Begin Game Maker resource sections when topics are covered.
Asset: Door (any) No behavior
Asset: Door (any) Door behaviour
Asset: Museum Info Panel
Button component
Message to Send: Door.Unlocked
Broadcast Type: EveryoneInRange
Create a custom message by typing it into the message field and click to Add it.
Asset: Door (any)
Door behavior
Message to Open: Door.Unlocked
Select the existing message from the message dropdown list.
Asset: Door (any)
Door behavior
Message to Open: Interact
Toggle component
Turn On Message: Door.Unlocked
Initial Behaviour State: False (behavior inactive at game start)
Asset: Door (any) Name: DoorA
Door behaviour
Message to Open: DoorA.Open
Asset: Ancient Lever
Message Broadcaster behaviour
Message to Send: DoorA.Open
Broadcast Type: All
Wait Before Broadcast: True
Message Required: Interact
Asset: Door (any) Name: DoorB
Door behavior
Message to Open: DoorB.Open
Asset: Key (any)
Collectable component
Message On Collect: DoorB.Open
Broadcast Type: SelectedActors
Broadcast Targets: DoorB
Asset: Door (any) Name: DoorC
Door behavior
Message to Open: DoorC.Open
Speaker component
Detection Type: SpecificTagsinRange
Include Tags: DoorC.Key
Message to Send: DoorC.Open
Broadcast Type: Self
Asset: Key (any)
Tag: DoorC.Key
Pickable component
Asset: Logic Asset
Trigger Volume component
Detection Type: EveryAvatarInRange
Detection Shape: Box
Detection Area: x15
y5
z15
Enter Message: Night
Exit Message: Day
Broadcast Type: All
Asset: Car (any)
Basic Platform behaviour
Move Offset: x0
y0
z5
Look at Destination: True
Toggle component
Turn On Message: Night
Initial Behaviour State: False (behavior inactive at game start)
Asset: Weather Asset Name: Night
Message Required: Night
Profile: Night
Asset: Luxury Street Light
(prop with no logic)
Asset: Logic Light Asset Name: Street Light Position: Luxury Street Light (point down)
Light Type: Spot Light
Starting State: Off
Spot Angle: 15
Message Turn ON: Night
Message Turn OFF: Day
(2x) Asset: Logic Light Asset Name: Headlight Position: Car headlights (point forward)
Light Type: Spot Light
Starting State: Off
Spot Angle: 15
Message Turn ON: Night
Message Turn OFF: Day
Asset: Logic Asset Name: Street Light Trigger
Message Broadcaster behaviour
Message to Send: LightColor
Time: 10
Wait Before Broadcast: True
Message Required: Night
Asset: Logic Asset Name: Weather Trigger
Message Broadcaster behaviour
Message to Send: WeatherFade
Time: 10
Wait Before Broadcast: True
Message Required: Night
Asset: Logic Light Asset Name: Street Light
Message Turn ON: Night
Message Turn ON: LightColor
Asset: Weather Asset Name: Night
Message Required: Night
Message Required: WeatherFade
A forum post has been created for this learning activity! Visit to:
Ask or answer questions
Post ideas about the topic
Share what you've learned or created
from the activity
from the bonus resources