Sprite.localBounds

From MiniScript Wiki
Revision as of 21:53, 12 April 2020 by ZachStrout (talk | contribs) (Created page with "<c>sprite.localBounds</c> assigns a Bounds object to this property to define the sprite bounds in "local" coordinates. That means the bounds the sprite would have if it w...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

sprite.localBounds assigns a Bounds object to this property to define the sprite bounds in "local" coordinates. That means the bounds the sprite would have if it were positioned at x=0, y=0, with no rotation and scale=1. Mini Micro will automatically compute the worldBounds from this local bounds as the sprite moves, rotates, and scales.