playMaker

Author Topic: Stopping animation at certain point.[SOLVED]  (Read 1116 times)

arin

  • Playmaker Newbie
  • *
  • Posts: 3
Stopping animation at certain point.[SOLVED]
« on: April 29, 2017, 09:04:04 AM »
Hi, i use mouse pick -> nav agent to move my character around. I also want to play animation when my character is walking, but i don't know how to make it stop after it reaches desired point. I would need help with that.

does anyone knows how to settle this?

« Last Edit: April 29, 2017, 08:49:51 PM by arin »

Ofonna

  • Full Member
  • ***
  • Posts: 230
Re: Stopping animation at certain point.
« Reply #1 on: April 29, 2017, 12:50:38 PM »
constantly get game object speed every frame and when its less than 0.1 transition back to idle

arin

  • Playmaker Newbie
  • *
  • Posts: 3
Re: Stopping animation at certain point.
« Reply #2 on: April 29, 2017, 02:22:03 PM »
I already fixed it with get position and vector 3 compare. All though now i struggle with animations, whenever i want to cast spell and animation my character starts to walk for some reason. for more info i can say that i don't use animator. i just use play animation