ImageRectCollide with default mouse?

Blitz3D Forums/Blitz3D Beginners Area/ImageRectCollide with default mouse?

Galdy(Posted 2009) [#1]
I was wondering if and how you can use the default mouse pointer for the ImageRectCollide command? What would i put in place of "image?"

ImageRectCollide (What here?, Mousex(),Mousey(),0,rect x, rect y, rect width,rect height)

I know i could create a function to do this easy enough, but i want to know if i can do it with this command using the programs default pointer,


big10p(Posted 2009) [#2]
Not too sure what you're asking but if you want to detect when the mouse is pointing on an image, you'd use:

ImageRectCollide(image,image_x,image_y,image_frame, MouseX(),MouseY(),1,1)


Galdy(Posted 2009) [#3]
Ok I see. That is exactly what i'm trying to do. That answers my question perfectly.

Thanks Big. :)