rect_contains
Test whether a rectangle contains a point.
Parameters
x— Left.y— Top.width— Width.height— Height.px— Point x.py— Point y.
if rect_contains(10, 10, 16, 16, 12, 12) then print("inside")endRelated: rect_overlaps.
See the collision guide for more examples and limits.