playMaker

Author Topic: Example MouseClickToDrag modified need help  (Read 1803 times)

Nocturnal

  • Playmaker Newbie
  • *
  • Posts: 2
Example MouseClickToDrag modified need help
« on: January 04, 2015, 05:22:33 PM »
Hello,

i am new to Playmaker and i have 2 small problems i can't seem to fix.

i took the above mentioned example and modified it a bit to simulate a point & click movement while pressing left mouse button.

i use the target object as indicator as to where the player should move.
It is working so far but the problems are:

1. Prob : while pressing LeftMouseButton the player follows the Target Object fine but when it reaches the target it doesn't stop but moves into the object and therefore moves a bit downwards and then the target is above the player capsule. I want it to stop when reached the clicked position. For this to work i experimented with Trigger Event and Collider Event but none seems to work.

2. Prob : how can i modify this FSM to not stop the movement until the clickedPosition is reached despite the fact that the LeftMouseButton has been released.

i am happy with any help i can get and here is a video with that problem

« Last Edit: January 04, 2015, 05:27:01 PM by Nocturnal »

Nocturnal

  • Playmaker Newbie
  • *
  • Posts: 2
Re: Example MouseClickToDrag modified need help
« Reply #1 on: January 07, 2015, 01:31:49 PM »
So i remade everything from scratch and now it works

here is a video