A team...?

how can make sprites follow each other like in earthbound…i know how to make the sprites ‘walk’ by themselves but i need some help with this aspect of it…thanks