Logic Gadgets: Follower

Icon
Name of gadget Follower
Section Movers & Outputs
Number of Tweak pages 3
Author LadylexUK, QuietlyWrong
Last updated 19 Mar 2019 [Beta]

Description

This gadget will cause an object to move towards a tag or flee from it. It is particularly useful in creating enemy characters that can chase your player. You can tweak the minimum and maximum distance from the tag at which it should move, as well as the speed and strength of the following movement.

Example Tutorial (adapted from Media Molecule)

  1. Stamp a puppet
  2. Snap a tag to it
  3. Name the tag “player”
  4. Stamp a cube
  5. Snap a follower gadget to it
    Tweak the follower gadget and add “player” to tag name and min distance 1m.
  6. Go to test mode
  7. Possess your puppet and run about. The cube will follow you.

Tweak Menus

Click on arrows to reveal

Tweak Menu 1: Properties
  1. Tweak Menu page 1: Important Properties & I/O
  2. Follow Mode
  3. Speed
    3a. Input
    3b. Output
  4. Strength
    4a. Input
    4b. Output
  5. Overall Damping
    5a. Input
    5b. Output
  6. Tag to follow
  7. Power
  1. Menu page indicator
  2. Follow Mode
    Here you can choose whether the affected object’s movement should be towards or away from its target:

    • Follow
    • Flee
  3. Speed 
    Tweak this to control the affected object’s target speed. Note that this can be negative which could cause a “follow” object to flee and vice versa.
  4. Strength
    The strength of the follower represents its ability to reach its target speed. High strength means the follower will jump quickly to full speed, lower strength will make the follower change speed more gradually.
  5. Overall Damping
    The damping of a follower represents its resistance to movement. A higher damping means greater resistance to movement and correspondingly tighter control. Lower damping means less resistance to movement but a greater likelihood of the follower overshooting its target.
  6. Tag to follow
    Here you can enter the name of a tag that the affected object is moved towards or away from. You can pick any existing tag name from a list by hovering your imp tip over the field and pressing up or down on the d-pad to cycle through them. If you type in a tag name, take particular care to get the exact spelling and remember that names are case-sensitive.
  7. Power
    This is where you turn the gadget on/off
Tweak Menu 2: Strength & Damping Specifics
  1. Tweak Menu Page 2 : Strength & Damping Specifics
  2. Min Distance
    2a. Input
    2b. Output
  3. Max Distance
    3a. Input
    3b. Output
  4. Follow Strength in X
    4a. Input
    4b. Output
  5.  Follow Strength in Y
    5a. Input
    5b. Output
  6. Follow Strength in Z
    6a. Input
    6b. Output
  7. Damp in X
    7a. Input
    7b. Output
  8. Damp in Y
    8a. Input
    8b. Output
  9. Damp in Z
    9a. Input
    9b. Output
  10. Follower Direction Damping
    10a. Input
    10b. Output
  11. Power
  1. Menu page indicator
  2. Min Distance
    Use this to specify a minimum distance within which the follower will stop trying to follow. For example you might set enemies to follow and approach no closer than 10 metres while bombarding the tagged target. Note that such a follower will not back away if the target approaches, it merely stops advancing. You would need a separate follower gadget (set to “flee”) to force it to keep its distance when too close.
  3. Max Distance
    As with the Min Distance tweak, use this to specify a maximum distance beyond which the follower gadget will stop trying to move its affected object. For example if a puppet is set to flee a tag on the player, it will stop doing so when it reaches this distance – until the player approaches closer again.
  4. Follow Strength in X
    Use this tweak to determine the strength of movement specifically along the x axis.
  5. Follow Strength in Y
    Use this tweak to determine the strength of movement specifically along the y axis. For example you might set this to zero (and each of X and Z Strength to 100%) to lock a follower to a specific horizontal plane, able to follow the tag’s horizontal movements but make no movement in the vertical.
  6. Follow Strength in Z
    Use this tweak to determine the strength of movement specifically along the z axis.
  7. Damp in X
    Specifies how strongly the gadget damps movement relative to the X axis.
  8. Damp in Y
    Specifies how strongly the gadget damps movement relative to the Y axis.
  9. Damp in Z
    Specifies how strongly the gadget damps movement relative to the Z axis.
  10. Follower Direction Damping
    Specifies how strongly the gadget damps movement relative to the direction that the follower is currently trying to move.
  11. Power
    This is where you turn the gadget on/off
Tweak Menu 3: Inputs & Outputs
  1. Tweak Menu Page 3 : Inputs and Outputs
  2. Affected Object(s)
    2b. Output
  3. Target Position
    3a. Input
    3b. Output
  4. Found Target
    4b. Output
  5. Power
  1. Menu page indicator
  2. Affected Object(s)
    By default, the follower gadget will affect any object that it is snapped to. Instead you can connect a wire from this output directly to one or more elements in your scene and each will act as if this follower gadget is snapped to it.
  3. Target Position
    It is possible to follow a position output rather than a tag. Wire the position output fat wire from another gadget (e.g. the Laser Scope’s Hit Position – very useful in combination with this gadget!) into this input and the follower will “follow” that position instead.
  4. Found Target
    This outputs a true signal (1) if the follower is within range of a matching target (i.e. within the Min and Max Distances and therefore trying to move towards or away from it); false (0) otherwise.
  5. Power
    This is where you turn the gadget on/off.

Lex Tips

This is a very powerful gadget despite its simplicity. By turning on and off tags of the same name you can create movement paths for a character, such as a patrol route. You can create companion characters for your player such as a dog, and you can use it to attract collectables such as coins to the player.

Useful Tutorials

Beginners Guide to the Follower Gadget

Comments and Feedback

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Create a free website or blog at WordPress.com.

Up ↑

%d bloggers like this: