playMaker

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

TheJWB

  • Playmaker Newbie
  • *
  • Posts: 5
    • View Profile
Trying to understand how to switch between states.
« on: March 16, 2016, 09:18:52 AM »
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
    • View Profile
Re: Trying to understand how to switch between states.
« Reply #1 on: March 16, 2016, 10:52:27 AM »
can you post a screen shot of you FSM please?

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15377
  • Official Playmaker Support
    • View Profile
Re: Trying to understand how to switch between states.
« Reply #2 on: March 16, 2016, 11:00:48 PM »
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
    • View Profile
Re: Trying to understand how to switch between states.
« Reply #3 on: March 17, 2016, 04:57:27 AM »
can you post a screen shot of you FSM please?
I dont know how too

TheJWB

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

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15377
  • Official Playmaker Support
    • View Profile
Re: Trying to understand how to switch between states.
« Reply #5 on: March 28, 2016, 12: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