Can't jump while sprinting left, collectible hitbox

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.
  • Hello,

    I'm trying to build a simple platformer and am following the almighty zentaco's tutorial on YouTube. The character controls with the left and right arrow keys, jumps with the up arrow keys and sprints by pressing the left or right arrow keys + the space bar simultaneously.

    Unfortunately, I ran into two problems. The first is that when I sprint left, I cannot jump. I can jump while walking left, however.

    My second problem are the collectibles. Normally, when the player character and collectible hitbox overlap, the collectible should disappear, but sometimes the character jumps through the collectibles. Is there a way to expand the hitbox to cover the entire sprite of the collectibles?

    I've tried for hours to fix both problems, but I don't know where I went wrong. Does anyone have a clue to point me in the right direction, maybe, please? I've included the .mfa file and have tried to document every step I've taken so far. Any tip would be greatly appreciated. Thank you in advance.

  • Firstly the jump works fine both left and right walking and sprinting. It could be your keyboard not registering multiple keystrokes. I had that problem in the past an upgraded to a gaming keyboard. To test if this is the case - change from the space bar to another key.

    If you want a more responsive collision at line 32 change Player Character Collides with Collectable:
    Player Character is overlapping Collectable and add a condition Only one action when event loops.

Participate now!

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