How do I reset jump in "mid-air?" [Platformer Behavior]

0 favourites
  • 3 posts
From the Asset Store
10 Retro songs ideal for platformers or farming games
  • So I'm using https://www.scirra.com/tutorials/591/a-simple-method-for-climbing-ladders-in-platformers as my basis for ladder use in my platforming game. However, I want a few things that the tutorial doesn't do. Most of them I've figured out myself.

    1: Don't let being on a ladder phase through solid objects - fixed by setting platformer vector Y instead of set position

    2: Snap to ladder when climbing

    3: Allow jumping off the ladder

    3a: When jumping and remaining on the ladder, there's a brief pause before beginning climbing again.

    3b: Can climb ladder faster by jumping, regrabbing ladder, and jumping again.

    4: Can drop off of ladder with Jump + Down

    It's 3b I'm having trouble with. I can't figure out how to get the Platformer behavior to 'reset' jump ability if you're not technically landing on the ground.

    Any thoughts? I've attached a .capx with everything but 3b demonstrated.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You can set the Player platform VectorY to -Player.Platform.JumpStrength to make the player jump. Then you'd probably need to add some extra conditions to prevent the player spamming it.

  • You can set the Player platform VectorY to -Player.Platform.JumpStrength to make the player jump. Then you'd probably need to add some extra conditions to prevent the player spamming it.

    Actually that fits pretty well with my existing code- [Keyboard -> on space pressed] & [Player -> is Climbing] | [Set Player platform VectorY to -Player.Platform.JumpStrength]- and Climbing doesn't get reset until the player regrabs onto the ladder.

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