playMaker

Author Topic: Trying to understand how to switch between states.  (Read 2070 times)

TheJWB

  • Playmaker Newbie
  • *
  • Posts: 5
Trying to understand how to switch between states.
« 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?

Unisonkid

  • Playmaker Newbie
  • *
  • Posts: 33
Re: Trying to understand how to switch between states.
« Reply #1 on: March 16, 2016, 01:52:27 PM »
can you post a screen shot of you FSM please?

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Trying to understand how to switch between states.
« Reply #2 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

TheJWB

  • Playmaker Newbie
  • *
  • Posts: 5
Re: Trying to understand how to switch between states.
« Reply #3 on: March 17, 2016, 07:57:27 AM »
can you post a screen shot of you FSM please?
I dont know how too

TheJWB

  • Playmaker Newbie
  • *
  • Posts: 5
Re: Trying to understand how to switch between states.
« Reply #4 on: March 17, 2016, 08:02:51 AM »
 Get Speed didnt work

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Trying to understand how to switch between states.
« Reply #5 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