RoundRectangle.collision() - Mtax-Development/GML-OOP GitHub Wiki

Arguments

Name
Type
Optional
object
{int:object}
No
precise?
Yes
excludedInstance?
{int:instance}
Yes
list?
Yes
listOrdered?
Yes

Returns

{int|List}

Description

Check for a collision within this Shape with instances of the specified object, treating this Shape as an unrounded Rectangle. Returns the ID of a single colliding instance or noone. If List use is specified, a List will be returned instead, either empty or containing IDs of the colliding instances. If specified, the additions to that List can be ordered by distance from the center of the Shape.

⚠️ **GitHub.com Fallback** ⚠️