Sprite.overlaps
Revision as of 22:04, 12 April 2020 by ZachStrout (talk | contribs) (Created page with "<c> Sprite.overlaps</c> checks whether this sprite overlaps (touches) another one, by comparing their bounds. === Arguments === {| class="wikitable" |- ! Parameter Name !!...")
Sprite.overlaps
checks whether this sprite overlaps (touches) another one, by
comparing their bounds.
Arguments
Parameter Name | Type | Meaning |
---|---|---|
other | Sprite or Bounds | object to check for overlap with |
Usage Notes
Use of this requires first defining the localBounds of each sprite.