Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Problem with Collision Checking  (Read 1762 times)

0 Members and 1 Guest are viewing this topic.

e_barroga

  • Jr. Member
  • **
  • Posts: 76
    • View Profile
Problem with Collision Checking
« 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.

e_barroga

  • Jr. Member
  • **
  • Posts: 76
    • View Profile
Problem with Collision Checking
« Reply #1 on: September 06, 2009, 12:44:26 am »
Please delete this thread.... I solved it.

 

anything