Sprite.contains

From MiniScript Wiki
Revision as of 22:02, 12 April 2020 by ZachStrout (talk | contribs) (Created page with "<c>Sprite.contains</c> returns whether the sprite's world bounds contains the given x,y point (given in world coordinates). === Arguments === {| class="wikitable" |- ! Para...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Sprite.contains returns whether the sprite's world bounds contains the given x,y point (given in world coordinates).


Arguments

Parameter Name Type Default Value Meaning
x number 0 horizontal position of point of interest
y number 0 vertical position of point of interest

Usage Notes

This is just a shortcut for worldBounds.contains. Use of this requires first defining the localBounds.