Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ///mouse_within(x,y,x2,y2)
- // Returns true if the mouse is within the specified field
- // Written by GlitchDetector
- var mx,my;
- mx = mouse_x
- my = mouse_y
- var x1,x2,y1,y2;
- x1 = argument0
- x2 = argument2
- y1 = argument1
- y2 = argument3
- var xin,yin;
- xin = (mx >= x1) && (mx <= x2)
- yin = (my >= y1) && (my <= y2)
- var is_inside;
- is_inside = (xin && yin)
- return is_inside;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement