Sprite.overlaps

From MiniScript Wiki
Revision as of 23:13, 12 April 2020 by JoeStrout (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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.