SFML community forums

Help => Graphics => Topic started by: e_barroga on September 06, 2009, 12:40:23 am

Title: Problem with Collision Checking
Post by: e_barroga on September 06, 2009, 12:40:23 am
Here is a bin: http://host-a.net/e_barroga/Release.zip

Sometimes when the player and enemy collide with each other, the collision will be missed and they will pass right through each other. What makes it weird is that if the scrolling background is not there the collision works perfectly fine (just delete the background image in the image directory).

I test collision with the method: CollisionCheck(Entity* otherEntity)

This is the code that I am using to test for collision: http://codepad.org/CX6JcIbb


For testing purposes, I tried something simpler that does not use pixel-perfect collision: http://codepad.org/51vRqAGt

Both ways have the similar problem.
Title: Problem with Collision Checking
Post by: e_barroga on September 06, 2009, 12:44:26 am
Please delete this thread.... I solved it.