Difference between revisions of "Sprite.worldBounds"
		
		
		
		
		
		
		Jump to navigation
		Jump to search
		
				
		
		
		
		
		
		
		
	
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, [...")  | 
				|||
| (One intermediate revision by one other user not shown) | |||
| Line 1: | Line 1: | ||
| − | <c>Sprite.worldbounds</c> returns the current bounds of the sprite in world coordinates.  This  | + | <c>[[Sprite]].worldbounds</c> returns the current bounds of the sprite in world coordinates.  This  | 
is calculated by applying the sprite's current [[Sprite.x|x]],  | is calculated by applying the sprite's current [[Sprite.x|x]],  | ||
[[Sprite.y|y]], [[Sprite.rotation|rotation]], and [[Sprite.scale|scale]]  | [[Sprite.y|y]], [[Sprite.rotation|rotation]], and [[Sprite.scale|scale]]  | ||
Latest revision as of 23:13, 12 April 2020
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.