playMaker

Author Topic: Player Click and Move / Pathfinding  (Read 2237 times)

Omninorm

  • Playmaker Newbie
  • *
  • Posts: 33
Player Click and Move / Pathfinding
« on: August 24, 2016, 05:39:32 PM »
Ive looked at a few tutorials online where the Unity Navmesh is used with an AI character to calculate a path but not he player. I've also found a Diablo type movement which will also work well but it also doesnt add a way to move around an obstacle, like a wall.

I can't seem to get a reliable way to do this for my Character.
So, want to point and clickvto move but the character needs to find the path around.
Ive gotten line of sight using an invisible object that the player then follows placing that on the NavMesh and setting the vector3 but no go.

Can someone point me in the right direction here please?
Is there maybe a tutorial or document dealing with this or a pathfinding asset on the asset store we can use with Playmaker that will work?




Sebby

  • Playmaker Newbie
  • *
  • Posts: 7
Re: Player Click and Move / Pathfinding
« Reply #1 on: October 02, 2016, 01:20:17 PM »
I would also like an a solid answer to this.
I'm trying to make a boardgame style game, just moving player along a grid, to the tile clicked, and avoiding walls/obstacles along the way.

Searched for hours and still have no leads.

terri

  • Sr. Member
  • ****
  • Posts: 386
    • terrivellmann.tumblr.com
Re: Player Click and Move / Pathfinding
« Reply #2 on: October 03, 2016, 05:22:47 AM »
Your character needs to be a Nav Mesh Agent, set on the navmesh. Use the Set Agent Destination actions, and then Agent Pause/Resume etc.