playMaker

Author Topic: Getting vector to player to apply velocity to enemy  (Read 518 times)

CheMBurN

  • Playmaker Newbie
  • *
  • Posts: 1
Getting vector to player to apply velocity to enemy
« on: January 01, 2021, 07:13:07 PM »
I bought playmaker the day before and I've been finding a bit complicated to navigate but I think I'm getting the hang of it.

I've set up a rudimentary patrol sequence for a zombie and I want the zombie to move towards the player (by applying velocity to rigidbody2d and NOT using MoveTowards) when he's seen him.

The alert state I've set up but how do I get the vector towards the player and apply the velocity to the rigidbody?

I know coding it is trivial but I want to know how to do it using playmaker.

Thanks in advance!