source code for imagerectcollide please :)

Blitz3D Forums/Blitz3D Beginners Area/source code for imagerectcollide please :)

GameCoder(Posted 2004) [#1]
I dont want the tail end of my arrow to cause a collision on a menu item. I know its stupid but I dont get the imagesrectcollide example. I want to test a collision point ie, the tip of the arrow with an image for collision.

Please can someone GiMmIE Da cOdEZ. Read the sig <I noob, therefore I am>


Ross C(Posted 2004) [#2]
Just do this then. Create a 1x1 image. Call it point or something. Then:

If imagesoverlap(point,MouseX(),MouseY(),menu_image,mx,my) then
   ;do stuff
End If



Ross C(Posted 2004) [#3]
You don't need the image to be drawn, that's the beauty of the imagecollide commands :)