Introduction to Logic

From EVERYWHERE wiki
Revision as of 11:32, 17 June 2024 by Chameleon (talk | contribs)
Jump to navigation Jump to search

Logic Linking: Items can be linked together using Logic. This allows for creation of gameplay interactions. Check out Logic Best Practices by Build A Rocket Boy.

Below are some examples of basic logic linking to familiarise yourself with how the system works. Start with basic functionality, and build more complexity as you get comfortable with ARCADIA.

Interactive Doors

This page shows you how to setup logic for doors to open and close based on player location whenever they enter / leave a designated area.

Interactive Light

This page shows you how to create Logic for turning a light on with a Pressure Plate.

Moving Platforms

Moving platforms can add a lot of layers to your ARC. You can apply them to gates, or to open new paths for players to progress throughout your ARC. This page explains how to trigger specific object movement when a player enters a Trigger volume.

Required Nodes & Objects:

1x Box Trigger Volume

2x Move Node

2x Rotate Node

1x Factory Door (s)

  • Place Box Trigger Volume
  • Place Move Node
  • Place Rotate Node
  • Place Factory Door(s)
  • Link Box Trigger Volume to Move Node
    • On Enter → Start
  • Link Move Node to Factory Door(s)
    • Act On → Factory Door(s)
  • Now we need to link our Rotate Node
  • Link Box Trigger Volume to Rotate Node
    • On Enter → Start
  • Link Rotate Node to Factory Door(s)
    • Act On → Factory Door(s)
  • Click the Move Node to open the Attributes Panel
    • In our example, we want to move the door upwards, that will be our Z axis
    • Next to Translation, there are three sliders for each axis in this order: X, Y, Z
    • On the Z axis change the value to 5
  • Click the Rotate Node to open the Attributes Panel
    • In our example, we want to rotate the door on its Y axis
    • Next to Translation, there are three sliders for each axis in this order: X, Y, Z
    • On the Y axis change the value to 90
  • If you are unsure which axis is which, click on the object you want to apply movement to, and check the gizmo colors:
    • Red = X axis
    • Green = Y axis
    • Blue = Z axis
  • Now, we want to add the reverse action when we exit the Box Trigger Volume
  • Duplicate the Rotate Node and the Move Node
  • Link Box Trigger Volume to second Rotate Node
    • On Exit → Start
  • Link Box Trigger Volume to second Move Node
    • On Exit → Start
  • Link second Rotate Node to Factory Door(s)
    • Act On → Factory Door(s)
  • Link second Move Node to Factory Door(s)
    • Act On → Factory Door(s)
  • Click the second Rotate Node to open its Attributes Panel
    • We want to reverse the rotation from the first node
    • Change Y axis to -90
  • Click the second Move Node to open its Attribute Panel
    • We want to reverse the movement from the first node
    • Change Z axis to -5
  • You can play around with the movement and rotate node attributes until you reach the desired movement you are looking for
  • You can apply the same logic to other platforms, paths, and puzzles in your ARC

Make a Stamp of the setup so it can be used in building ARCs.