Teben's Recent Forum Activity

  • I see no one seems to have any ideas, so I'll try to clarify a little bit.

    On the player sprite I've created a private variable that detects when the player is crouching. At 0 he is not, at 1 he is. The player toggles this state by hitting the "shift position" control, which I've currently got set to shift. Whenever the crouching state variable is at 1, the animation/speed/etc all change to reflect this. It works like a charm with the exception of the very first press of the shift key...you must tap the key twice to get the player to crouch the first time, every other time it works just fine.

    Any ideas?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hey everyone, new guy here and really having fun getting into Construct.

    The problem appears to be very small, but I can't locate the issue for the life of me. I've built a system in the event editor that allows the player to put the character in a variety of states (walking, running, crouching, etc.) I have it set up so that when the player presses the crouch button, the character crouches...the system recognizes that the character is in the "crouch state," the animation changes to reflect this, etc. It works just fine, with one small issue; the very first time you press the button, it is not recognized. However, it works perfectly every subsequent time.

    I was really confused by this, so I actually deleted everything else in the entire event list except the couple of events needed to actually do the crouch and this still happens. I also tried changing which key the command is assigned to and this makes no difference either. Any ideas?

Teben's avatar

Teben

Member since 5 Dec, 2010

None one is following Teben yet!

Trophy Case

  • 13-Year Club
  • Email Verified

Progress

14/44
How to earn trophies