How would I make an actor follow the player, like Earthbound or Deltarune?

So im trying to make an RPG game, and I want to have my party members follow me around, without them walking right on top of the player. If you guys could help me out, that would be great.

Comments

  • adent42adent42 Key Master, Head Chef, Executive Chef, Member, PRO Posts: 3,065

    add an offset for the target/player actor coordinates for the party member to target

    so instead of player.x, have them target player.x + 20

    if you store a 1 or -1 depending on what direction your player is moving, you can multiply it by the offset so they are always aiming behind the character.

Sign In or Register to comment.