Sprite.worldBounds

From MiniScript Wiki
Revision as of 21:55, 12 April 2020 by ZachStrout (talk | contribs) (Created page with "<c>Sprite.worldbounds</c> returns the current bounds of the sprite in world coordinates. This is calculated by applying the sprite's current x, y, [...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Sprite.worldbounds returns the current bounds of the sprite in world coordinates. This is calculated by applying the sprite's current x, y, rotation, and scale values to the sprite's localBounds.

See also: How to detect a click on a sprite

Usage Notes

Use of this requires first defining the localBounds.