How do I make an object stay at a certain place to player

  • The title is bad, but it's hard to explain. I'm trying to make runaway AI for my game and I want it to run away from the player through pathfinding to help it dodge trees and look semi-realistic. The problem is that I have nothing to make it pathfind to, and therefore require a way to move an object to a certain distance away from the player, and also always stay infront of the player. But I'm having a problem with that as well because the players can simply turn away from the object running away to draw it towards the player. So my question is, how do i properly make an object pathfind away from the player, or simply run away from the player and dodge solid objects as pathfinding would? I'm getting very frustrated because I really want this to work but I have no idea where to begin and what to even do! Please help me!

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Your trying to get this object to run and dodge things?

    What type of game is this? Platformer? or top down?

    Justin

  • Your trying to get this object to run and dodge things?

    What type of game is this? Platformer? or top down?

    Justin

    Sorry, I don't need help anymore! Thanks anyways!

    BTW, it's a top down.

  • Glad you got it resolved...

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)