Player falls through the ground [4.1.5 - Scrolling Platformer]

Dirk

Member
Hi!

When the player jumps from the top of the screen he often glitches through the ground tiles and falls down. It seems like his speed gets too fast for the collision detection. My player has a small bounding box of 8x7.

I can't make the bounding box bigger or I would be wasting space for sprites.

Is there a fix for the collision detection? I couldn't find it via search, but I've learnt that there should be a fix for this.

A simple quick fix that comes to my mind would be capping the player's speed. Is there currently a terminal velocity for the player and can I set it somewhere?
 

dale_coop

Moderator
Staff member
Yeah, I think almost every projects here have this issue.
You could maybe make your ground 2 rows instead of 1?
 

Dirk

Member
Ah, bummer.
My ground is actually 2 rows high, I changed it to 3 rows now, but it didn't help.
 

Dirk

Member
This might add to the problem, but I can't make it any bigger than 16x7, I think 16x8 would cause my player to glitch into the ground from the get-go. I think limiting or reducing the max speed when he falls would help. Do you know if there is a setting for this?
 
Top Bottom