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.