playMaker

Author Topic: Stop object using 'move towards'  (Read 1450 times)

ShazBang

  • Playmaker Newbie
  • *
  • Posts: 33
Stop object using 'move towards'
« on: April 27, 2016, 08:58:48 AM »
I've got an object that is moving back and forth between two other objects using the 'move towards' action.

I want it to stop where it is when I click on the screen but I'm having trouble...

On my camera I set it up so that when mouse down happens, it makes the moving object move towards an object at a speed of 0, which I thought would make it stop.

It just keeps moving, can anyone help please?
Thanks.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Stop object using 'move towards'
« Reply #1 on: April 28, 2016, 04:40:39 AM »
Hi,

You'll need to do the following:

- have two state, one with the move towards, one without.
- Implement a logic to switch between these two states, and you'll end up with an Fsm that can follow or not a target.

 Does that make sense?

Bye,

 Jean