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.
  • I'm curious to know about an efficient way to make a walljump. So far, when the player detectors (placed on the right and left side of the player) are in contact with a wall, and the floor detection is not in contact with anything (ie. the player is in the air), the player can press jump and it'll move him a couple of pixels away from the wall, and up depending on how long the player holds down the jump button.

    This works quite well, as the player can control the player direction mid-air, but this also made a couple of problems. The first problem, was that the player could continually press jump while holding the direction button in the same direction as the wall was, enabling him to just basically slide up the wall without having to "launch" himself away from the wall. The ideal movement I'm looking for is one resembling "Super Meat Boy", where you will be forcibly launched away from the wall, but to a lesser extent if you hold the directional button down towards the wall you sat on.

    Some extra information: I use a custom made platforming engine, using gravity, horizontal movement modifiers and jumpcounts, so built-in platformer object tips wouldn't really work for me - I'm also not really a fan of the path-movement object, as I've had some dodgy experiences with it.

    I was considering disabling some keys for a small time-frame when the player performed a wall-jump, but I'm sure that is not a great solution to the problem.

    That's basically my first question, I'll get to my second problem once I solve this.

    Thank you in advance, I know this community is very helpful and I believe this is quite solvable, but after many hours I've just come to a halt. Let me know if you need to see code.

  • Yeah that's a tricky beach to do elegantly. In my engine I add a push to the acceleration(which rapidly diminishes) away from the wall stronger than the player's own max.acc. This makes it so that if not holding any direction when jumping off the player will launch away from the wall in a somewhat 'natural' way. If you instead hold either toward or away from the wall you get a wall 'bounce effect' or a long jump respectively. Though everything depends on how your engine's momentum handling is set up.

  • In my game, I created a wall jump. I simply did:
    Coliding Backdrop(left) AND ButtonPressed("Space") >THEN> add (Xvelocity(player)*-1.3) to Xvelocity
    When in contact of the wall (right) AND Pressed Space >THEN> add (Xvelocity(player)*-1.3) to Xvelocity //This makes the player speed up the other direction when bounced off the wall
    But to make a good wall jump you have to get enough speed, and after the wall jump you have to press the different direction arrow too.

    - BartekB

    Join the Click Converse Discord! - Please login to see this link.

  • Thank you for your fast replies.

    As mentioned I don't use the platformer movement object as I'd feel too 'locked' on what I would be able to do, it's a nice example though. If I was using the platformer object I'd definitely use some of that, so thanks!

    While I've not completed fixed it, now the player does jump away from the wall in a nice-looking fashion. I decided to do a fastloop using a horizontal movement variable (which I use for basic movement as well)
    X( "Player" )-(Horiz( "Player" )/Abs(Horiz( "Player" )))

    The player can still hold down the direction towards the wall and jump, and quickly rise to the top, but it doesn't look as ridiculous as it did before.

  • I actually just fixed it. It seems the "double jump" feature was colliding with my walljump code. I made sure the player wasn't colliding with a wall when doublejumping to prevent that. I'm very happy with my platforming engine now. :)

    Again, thank you for your posts.

Participate now!

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