RPG Breadcrumb Style Party Following

For about like half an hour I’ve been scouring the internet from youtube to older forums and while I found some things, I haven’t been able to find anything that I understand how to implement.

Basically I’m asking for help on how to implement a classic breadcrumbs style party follow mechanic where party members move along the exact path made, and when you stop the party members stop. My game is not grid movement but free (8 direction movement) where the player can be inbetween tiles.

How can I make the logic for my party members to ghost the player and configure how far back they are? Thanks.

Sounds like you want them to walk towards the player/next member up until a certain distance?

var difference := next_member.position - position

var distance := difference.length()
if distance > DISTANCE_BETWEEN_MEMBERS:
    var direction := difference.normalized()
    position += direction * SPEED * delta

Kinda, well yes that is true, but I don’t mean going towards the player/next member directly, but rather following the path. Leaving a trail of “breadcrumbs” that the other members follow.

Also I found a tutorial and it actually did work I forgot to close this sorry lol