Difference between revisions of "Sprite.overlaps"

From MiniScript Wiki
Jump to navigation Jump to search
(Created page with "<c> Sprite.overlaps</c> checks whether this sprite overlaps (touches) another one, by comparing their bounds. === Arguments === {| class="wikitable" |- ! Parameter Name !!...")
 
Line 1: Line 1:
<c> Sprite.overlaps</c> checks whether this sprite overlaps (touches) another one, by
+
<c>[[Sprite]].overlaps</c> checks whether this sprite overlaps (touches) another one, by
 
comparing their bounds.  
 
comparing their bounds.  
  

Revision as of 23:13, 12 April 2020

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.