playMaker
Home
Store
Showcase
Tutorials
Forums
Manual
Wiki
About Us
Playmaker Forum
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Join our
Discord Channel
Home
Help
Search
Login
Register
Playmaker Forum
»
PlayMaker Help & Tips
»
PlayMaker Help
(Moderator:
600
) »
Stop object using 'move towards'
« previous
next »
Print
Pages: [
1
]
Go Down
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.
Logged
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
Logged
Print
Pages: [
1
]
Go Up
« previous
next »
Playmaker Forum
»
PlayMaker Help & Tips
»
PlayMaker Help
(Moderator:
600
) »
Stop object using 'move towards'