RectsOverlap() ???
BlitzMax Forums/BlitzMax Programming/RectsOverlap() ???
| ||
Hey, I have a quick question. Is there a RectsOverlap() function in BlitzMax. If not, has anyone made their own in the code archives or something. I've been working with Blitz Basic for many years and have gotten used to their collision functions. Thanks for the help :) |
| ||
Try this http://www.2dgamecreators.com/tutorials/gameprogramming/collision/T1%20Collision2.html |
| ||
or use search with RectsOverlap. Rectsoverlap Rectsoverlap1 in rectsoverlap and, of course, Assari's superb tutorial. |
| ||
Do a search on the forums, there was some long discussion about this some time ago with various solutions |
| ||
There's one in the RockOut sample code (called Overlap -- Birdie did it). I think the parameters go top-left, bottom-right for the first rect, then top-left, bottom-right for the other, but not sure. |