Creating a trail of characters that follow you

Hello all,

I’m looking to prototype a 2D game that has a mechanic where you have a group of characters that follow you around exactly like this: Flicky (Sega Genesis) - YouTube (Flicky, Sega Genesis)

I’m having trouble wrapping my head around how this effect would be best achieved. My first instinct was that I should create waypoints that follow behind the player and have some AI in each follower that tries to stay as close as possible to it’s assigned position. But I have a suspicion that there may be a more simple and efficient way to do this that doesn’t involve giving each follower separate AI and physics components.

I don’t need code snippets, I’m just looking for a general idea of how I could tackle this effect. Thanks in advance!

An easy way to do this is using Distance Joint 2D. Consider you have a main object and 4 other objects, that must be followed by them continuously. All 5 objects should have a rigid body 2d attached, 4 others (except main object) must have a Distance Joint 2D. Then in connected rigid body field for each of them in the inspector, you must select the object that MUST be followed, for example, select main object for object 1, object 1 for object 2, etc.

The logic behind this is that any object does not exceed maximum distance with it’s following object, which can be achieved manually in code with some effort.