[solved]How do I change jump distance

  • Using the platform behavior and right now the player jumps quite a far distance horizontally, vertical is good when holding down the right or left arrow key. I have played around with the numbers for all the settings and none of it seems to make a difference when making the jump. If holding down the right arrow or left arrow and then the player jumps they move about 256 pixels, how do I shorten that?

  • Have you tried changing Vector X?

    Something like this:

    Player is jumping -> Set vector X to clamp(self.Platform.VectorX, -100, 100)

  • Have you tried changing Vector X?

    Something like this:

    Player is jumping -> Set vector X to clamp(self.Platform.VectorX, -100, 100)

    just gave that a try but didn't change anything, even increased it to -200, 100

  • You should decrease it if you want to shorten the jump.

    Player is jumping

    or

    Player is falling -> Set vector X to clamp(self.Platform.VectorX, -20, 20)

  • You should decrease it if you want to shorten the jump.

    Player is jumping

    or

    Player is falling -> Set vector X to clamp(self.Platform.VectorX, -20, 20)

    Still doesn't make any difference on the distance the player travels horizontally, have played around with the numbers going both ways.

  • Could you share your capx?

    Because I tested the code I posted above and it works.

  • Could you share your capx?

    Because I tested the code I posted above and it works.

    it's got some commercial behaviors/plugins

  • You can post a screenshot of your event sheet or a stripped version of the capx with just one platform object and nothing else.

  • You can post a screenshot of your event sheet or a stripped version of the capx with just one platform object and nothing else.

    here's an image, I also tried adding the condition that arrow key is down

  • Shouldn't it be "Player_Box set Platform vector X" ?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Shouldn't it be "Player_Box set Platform vector X" ?

    yep, I completely forgot that I had the player box, Thank you for that lol it works now

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