MagiCats
Wiki home
Actions / Move

Follow

Makes the subject chase a target.

Current editor blockBlock ID 102Follow
Follow code block in the MagiCats editor

What it does

Turns toward the target, then moves forward.

If the subject is not affected by gravity, it can also move up or down to follow the target height.

Inputs

  • Target unit.
  • Distance or step count.

Try it

Loop If See Player, Follow Player 1. A simple chasing enemy.

Tips

  • Combine Follow with Attack to make a boss that closes distance and strikes.

Sources

Legacy pages reviewed: Follow

Code checked: MagiCats_UnityProject/Assets/Scripts/Blocks/ContentFonction.cs, MagiCats_UnityProject/Assets/Scripts/Blocks/BlockManager.cs