Checks if the mask of an object collides with a rectangle at given position.
This could be useful when creating text, as buttons.
In this case, you would create a 1x1 sprite, and move it to mouse_x, and mouse_y each step.
In your button, you would then type:
//Do your thing
x1: Upper left corner of the rectangle, pixels from the left side of the window
'y1: 'Upper left corner of the rectangle, pixels from the top of the window
x2: Lower right corner of the rectangle, pixels from the left side of the window
y2: ' Lower right corner of the rectangle', pixels from the top of the window
(for instance, x1 = 0, y1 = 0, x2 = 50, y2 = 50, would make a 50x50 rectangle collision.)
obj: Object to collide with
prec: Precise collision checking
notme: Not too entirely sure, shame on me. I usually leave that false.