Game Development Community

Player is getting stuck in platformer

by Sean Yeomans · in Technical Issues · 07/07/2008 (12:29 pm) · 0 replies

Hi guys,

While doing the breakout tutorial on the TDN site, I noticed that sometimes the ball gets stuck on pretty much anything that is collidable. This happens rarely but seems like a pretty serious issue.

Unfortunately I've been working away on a platformer and ran into the same problem; my player occasionally gets stuck on the edge of my tilemap after a jump.

Are there any ways around this issue? Just to let you know, there's a constant force that is always pushing down the player (gravity) and he is constantly moving to the right ( setLinearVelocityX(300); ). When the player jumps a force is applied to push him up ( setLinearVelocityY(-400); ).

Any help would be appreciated!

Thanks