playMaker

Author Topic: Click to Move with Animator  (Read 2019 times)

nguyennk91

  • Playmaker Newbie
  • *
  • Posts: 2
Click to Move with Animator
« on: September 24, 2015, 10:50:56 AM »
How to get click to move with animation?
I follow some tutorial i found on youtube and google
But All of them (with animation) are using key instead of mouse click

Anyone have some tutorial for playmaker that using click to move system (click and character move toward that point on screen - topdown camera) with animation?

My animator is just a simplify version of Standard Package 3rd person
I delete most of the animator state and create the brand new one with only Idle and Run state (control by speed parameter - no jump - no crouch)

P/s: If it's possible, anyone can share a proper way to set up click to move as well?
My click/hold to move work but kinda sluggish (send event every .5 s to check if mouse is holding - else go back to origin and wait) - really appreciate if anyone have a better way

Thanks,

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7618
    • jinxtergames
Re: Click to Move with Animator
« Reply #1 on: September 26, 2015, 11:02:35 AM »
Hi,
you can try this :

use mouse pick (store point : Vector3) Action

and move towards (Target Position) Action
or DOTween move

and you can use an animator bool (true) and set it on the same state as move toward or the DOTween move

when move has finish (next state) use animator bool (false) again

nguyennk91

  • Playmaker Newbie
  • *
  • Posts: 2
Re: Click to Move with Animator
« Reply #2 on: September 26, 2015, 11:16:51 AM »
Thanks for the reply, i was able to make it working by combine playmaker with plygame movement XD