Sprite.contains

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.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.