PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Error with intersect()

RapchikProgrammer · 18 Oct 2008, 06:12 UTC
Hey, i am having a problem with intersect() function in E2DSurface.

Now in my game i am creating one e2dsurface and blitting it over 50 times in different positions, now when i use the intersect() with the surface only the first image i blitted that is the index number 0 in the array collides none other does :S. please help me with this problem, thanks.
Hi,

Are you using pixel precise collision detection, or basic bounding box collision? Also, are you setting the x/y parameters to the right coordinates in your function calls?

If you post a small code sample here, we can help you further.