playMaker

Author Topic: Animation States based on Mouseclick and Character distance.  (Read 516 times)

kenmarold

  • Playmaker Newbie
  • *
  • Posts: 14
    • View Profile
Animation States based on Mouseclick and Character distance.
« on: December 14, 2015, 12:56:16 PM »
I'm trying to set up a little Playmaker logic that takes the current player position and a new position (stored upon mouse down) and calculates at the x/z difference between the two of them and stores this result in a new variable every frame. When the difference is within +/- 0.1 I want my animator state to change. I can get this work using arrow keys but haven't been able to solve the problem with a mouse or touch input. How do I implement this in a state? What are the actions that I need to do this? I've been trying things for the past few hours, but I'm not having any luck.