Difference between revisions of "Sprite.contains"
		
		
		
		
		
		
		Jump to navigation
		Jump to search
		
			
		
		
		
		
		
		
		
	
ZachStrout (talk | contribs)   (Created page with "<c>Sprite.contains</c> returns whether the sprite's world bounds contains the given x,y point (given in world coordinates).   === Arguments ===  {| class="wikitable" |- ! Para...")  | 
			
(No difference) 
 | 
Revision as of 22:02, 12 April 2020
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.