Jumping close to platform...

Welcome to our brand new Clickteam Community Hub! We hope you will enjoy using the new features, which we will be further expanding in the coming months.

A few features including Passport are unavailable initially whilst we monitor stability of the new platform, we hope to bring these online very soon. Small issues will crop up following the import from our old system, including some message formatting, translation accuracy and other things.

Thank you for your patience whilst we've worked on this and we look forward to more exciting community developments soon!

Clickteam.
  • Hi,

    I'm trying to get my player to jump in an ios build.
    I found success in the platform movement object - which is rad!
    The user clicks - the player jumps: BOOM! Sorted!

    I've made it so you can only jump when the object is standing on the ground: also totally cool - no double jump.

    However...
    Does anyone know how I can make it so the user can jump when the active object is a few pixels above the ground/platform???
    I figure if the game is gonna be fast paced it'll be super frustrating if the active has to have landed completely before they can jump again.

    I am a total newbie so any help would be really appreciated :)

    Thanks

  • Hi, Endorian.

    Are you using a square collision box for the character? What you could do is create a "Sensor" (Active Object.) Make its width the same width as your collision box, then make its height the distance from the ground that you want the player to be able to jump (IE Player can jump 4 pixels from the ground - make the height 4 pixels.)

    Now position the sensor directly below your collision box.

    Now all you have to do is change your code.

    Player Presses Jump
    +
    Player Is standing on Ground
    OR
    Player Presses Jump
    +
    Player is Falling
    +
    Player SENSOR is overlapping ground

    - Jump!

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!