State machine and transitions troubleshooting

0 favourites
  • 1 posts
From the Asset Store
State Machine
$10.99 USD
State Machine is a great tool for managing the state of anything in your game.
  • I posted last week about on key pressed/down/released here and got quick and helpful answers, but in the end I wasn't able to solve the real problem I was trying to solve.

    I am trying to build a state machine for a 2d platformer animation set, based on the Platform behavior but elaborated with transition animations between states. I had made a descent bit of progress with the Default keyboard controls, posted here:

    Default controls.capx

    I was testing the behavior with a simple stand-to-run/turn-to-run/run-turn-to-run depending on current state and facing (mirrored or not) and the above example works exactly as I intended.

    But when I switched to non-default controls for WASD/Gamepad, I ran into problems. Now turning-while-running is broken while going left-to-right as is stand (facing right) to run-left. The newer, broken capx is here:

    Non-default, broken controls.capx

    The problem still seems to be in detecting when something is pressed/down/released but I'm certainly still missing something.

    Any help would be much appreciated!

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)