Skip to main content

Boolean Messenger Pattern

note

This pattern has been replaced by the Custom Event object, which performs the same function.

There are times when you will need to send a signal to distant parts of your map. You can use a Boolean to pass messages from one place to one or more other places in your map. This pattern is useful for keeping complex maps organized.

There is a method of creating non-linear Checkpoints that takes advantage of Boolean Messengers.

Use a Boolean to Send Messages​

Add a Boolean variable. This Boolean will be used exclusively to send messages, so I have named it Boolean Messenger. PatternBooleanMessenger1.PNG

When the player reaches a certain point in my map, I want to enable a teleporter in a distant module. First, I will add a copy of my Boolean Messenger. Then I will connect it to a Teleporter Pad with On Changed and Enable Teleporter. PatternBooleanMessenger2.PNG

Now I can move this Teleporter connected to a Boolean Messenger anywhere in the map. When my Boolean Messenger is changed using the Toggle input, the Teleporter will be enabled. I can use as many copies of Boolean Messenger as needed to enable as many Teleporter Pads as I want. This allows me to send many output signals to every corner of my map.