cykod / Quintus

HTML5 Game Engine
http://html5quintus.com
GNU General Public License v2.0
1.41k stars 401 forks source link

Player sporadically falling through collision layer on high fall #181

Open chelBot opened 8 years ago

chelBot commented 8 years ago

When the player jumps exceptionally high off of an enemy or falls from a high place she sporadically falls through the collision layer. Not sure why this is happening.

viki53 commented 8 years ago

Do you have any code that could us replicate this bug?

Thanks!

chelBot commented 8 years ago

Well here is the repo if this helps: https://github.com/chelBot/SpaceInvader.git

I am loading in a tmx file from tiled that has the collision layer in it. If you clone the repo and play the game a bit, making sure to bounce high and fall long off of other sprites you will eventually fall through the game.

I wish I could be more specific about where the bug is actually happening in my code but I really have no idea. I think it may be a quintus issue? Honestly I am not super familiar with the framework.

chelBot commented 8 years ago

A clue: if I turn the player's gravity way up she falls through the collision layer much more frequently.

viki53 commented 8 years ago

I'd guess it's related to the speed. Maybe there isn't enought time between two frames to see that the player is bumping against a collision layer.

I'm not an expert on this part of the code, but I think that could be it.