RectsOverlap() ???

BlitzMax Forums/BlitzMax Programming/RectsOverlap() ???

Zenn Lee(Posted 2007) [#1]
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 :)


assari(Posted 2007) [#2]
Try this http://www.2dgamecreators.com/tutorials/gameprogramming/collision/T1%20Collision2.html


tonyg(Posted 2007) [#3]
or use search with RectsOverlap.
Rectsoverlap
Rectsoverlap1
in rectsoverlap
and, of course, Assari's superb tutorial.


ImaginaryHuman(Posted 2007) [#4]
Do a search on the forums, there was some long discussion about this some time ago with various solutions


BlitzSupport(Posted 2007) [#5]
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.