playMaker

Author Topic: Run fsm template with new input action  (Read 355 times)

SiFiJedi

  • Playmaker Newbie
  • *
  • Posts: 4
Run fsm template with new input action
« on: April 25, 2026, 03:37:05 AM »
Hi All,

I am trying to use the run fsm action with a template that uses Player Input Button Events, but it does not work.

I intend to use it for a double jump, air dash and more.

This works if i use get key down instead of Player Input Button Events.

Any help would be greatly appreciated.

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 4384
  • Official Playmaker Support
    • LinkedIn
Re: Run fsm template with new input action
« Reply #1 on: April 25, 2026, 06:59:02 PM »
I just tried a quick test here and it worked in a template with Run FSM. Does the Player Input Button Events work as expected in a normal FSM Component? How are you setting the GameObject target in the action? Owner, or a variable? You can hit Show on Run FSM while playing to check the running FSM.

SiFiJedi

  • Playmaker Newbie
  • *
  • Posts: 4
Re: Run fsm template with new input action
« Reply #2 on: April 26, 2026, 04:42:55 PM »
Hi Alex, Thanks for answering.

Yes the Player Input Button Events Does work as expected in a normal FSM Component and the GameObject target is the Owner.

So I have a Player Input Button Event state going to a controller jump state, with this same setup being saved as a double jump template, with the template in a run fsm action after the controller jump, but it seems like only the template runs or skips to it to quickly maybe? the jump does work but only once.

On the Input Button Event I have tried was pressed this frame but this makes no difference.

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 4384
  • Official Playmaker Support
    • LinkedIn
Re: Run fsm template with new input action
« Reply #3 on: April 27, 2026, 10:18:15 AM »
If you show the FSM while playing is it stuck in a state it shouldn’t be in? Can you post a screenshot.

SiFiJedi

  • Playmaker Newbie
  • *
  • Posts: 4
Re: Run fsm template with new input action
« Reply #4 on: April 27, 2026, 11:36:39 AM »
Yes it does get stuck in the jump state of the double jump template, so I tried a next frame event to reset back to the input state but, this lets the player jump infinitely while still in the air.

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 4384
  • Official Playmaker Support
    • LinkedIn
Re: Run fsm template with new input action
« Reply #5 on: April 28, 2026, 11:58:18 PM »
Have you tried a short wait on the jump state before returning to the input state? Maybe the way the input actions is setup it's detecting a continuous press instead of a press and release?

SiFiJedi

  • Playmaker Newbie
  • *
  • Posts: 4
Re: Run fsm template with new input action
« Reply #6 on: April 29, 2026, 01:59:03 AM »
I added a wait (0.1) after the input/before the jump and another wait after the land. All working as it should now.

Thank you Alex.  :)