How do I make the player jump automatically

0 favourites
  • 4 posts
From the Asset Store
Players follower. use it for anything which follows the player
  • Hi all,

    I'm fairly new to C2, I'm making basics platform games to try things out and I need your help on something.

    How can I make my player automatically jump when it collides with 'a jumper' sprite.

    I made this image to explain what I'm trying to achieve:

    1. The player move onto a sprite

    2. Automatically it makes the player jump a bit higher than he can, so he is able to reach a higher platform

    At the moment I change the player's gravity for a second before re-initializing it.

    The result is very odd when the player move onto the jumping sprite, when the collision occurs while the player is jumping it's a bit better but not good enough.

    I attached the capx.

    Thank you for your help

  • Use the action simulate control: jump, and you can add another action and increase the jump strength so it reaches higher.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • ,,,,,,,,

  • Woah... I tried simulate control jump but I didn't manage to make it work. Anyway, thank you for your help it works !

    Edit: Ok I had to add the Solid behavior to the 'jumping' sprite to make simulate control jump work.

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