How do I Crouch

0 favourites
  • 3 posts
From the Asset Store
Platformer player character (w/ multiple skins), w/ walk, run, slide, crouch, flip, & swim. +Enemies, Bosses, & FX
  • I'm sorry for the really lame question, but for some reason my brain just can't make sense of this.

    Alright, I know how to crouch. I have the animation set up and everything. I even know how to make them crouch at the press of a button, basic stuff.

    My question is, how do I force the player to stop moving when the down button is being held down.

    Once the player lets go of the down button, they will stop crouching and be able to move around again.

    I know this is really basic but for some reason I can't figure it out. Perhaps I'm overthinking it somehow.

    Thanks in advance!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • If you are using custom controls for your movement you could add a condition to your key-presses..

    On left arrow pressed

    Down arrow is not down

    or add an instance variable to your player that you set to "crouching" on down arrow down

    and check for that in a condition:

    On left arrow pressed

    player instance variable is not "crouching"

  • I knew I was overthinking it. Thanks a lot!

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)