Advertisement
SirCumferance

[GML] mouse_within (compact)

Jan 6th, 2022
2,360
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ///mouse_within( x1, y1, x2, y2 )
  2. // returns true if the mouse is within the specified area
  3.  
  4. return ((mouse_x > argument0) && (mouse_x < argument2)) && ((mouse_y > argument1) && (mouse_y < argument3))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement