PocketMatrix forums

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

Intersect question

I search for the answer to this, but couldn't find it so...

Does CGapiSurface::Intersect() work on surfaces that have not been blitted?

In other words, can I test for a collision based on where two surfaces will be drawn?

I know it sounds like kind of an odd question, but it will determine how I go about coding a scrolling map section of my game. Thanks!
In other words, can I test for a collision based on where two surfaces will be drawn?


Yes! Just use the coordinates where you planned to draw the surfaces and call Intersect.