From MiniScript Wiki
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).


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.