Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: TheJWB on March 16, 2016, 12:18:52 PM

Title: Trying to understand how to switch between states.
Post by: TheJWB on March 16, 2016, 12:18:52 PM
I just purchased playmaker & i've been trying to learn from video tutorials. I have a third person character set up with 3 states. Idle run & walk. It starts on idle , it has no problem switching to walk & then to  run on a button press & back to walk once the button is releases but I cant get it to switch back to idle when the character stops moving. Can anyone explain to me what I need to do to get it to go back into idle when the character stops moving?
Title: Re: Trying to understand how to switch between states.
Post by: Unisonkid on March 16, 2016, 01:52:27 PM
can you post a screen shot of you FSM please?
Title: Re: Trying to understand how to switch between states.
Post by: jeanfabre on March 17, 2016, 02:00:48 AM
Hi,

 One way is to watch for the speed using "get speed", if it's less than 0.1, then you can assume the character is not moving and you can transit to your idel state.

Bye,

 Jean
Title: Re: Trying to understand how to switch between states.
Post by: TheJWB on March 17, 2016, 07:57:27 AM
can you post a screen shot of you FSM please?
I dont know how too
Title: Re: Trying to understand how to switch between states.
Post by: TheJWB on March 17, 2016, 08:02:51 AM
 Get Speed didnt work
Title: Re: Trying to understand how to switch between states.
Post by: jeanfabre on March 28, 2016, 03:10:27 AM
Hi,

 To post a screenshot, you need to upload it online first, I use http://imgur.com/, it's free and simple. then when you write a post, you simply use the "Insert Image" button in the formatting toolbar of your message and paste the url, it will then appear in your message ( hit preview before sending to make sure it works)

Bye,

 Jean