GetSpriteStateSize
From OxeyeWiki
(Difference between revisions)
				
																
				
				
								
				Jeb  (Talk | contribs)
(Created page with '{{VideoMethod | video.getSpriteStateSize(spriteId) | Fetches the width and height of a sprite state. Currently this method will always return the size of the first frame of the a...')
(Created page with '{{VideoMethod | video.getSpriteStateSize(spriteId) | Fetches the width and height of a sprite state. Currently this method will always return the size of the first frame of the a...')
Latest revision as of 15:17, 5 March 2009
| 
 video.getSpriteStateSize(spriteId)  | ||
| 
 Fetches the width and height of a sprite state. Currently this method will always return the size of the first frame of the animation, in case the animation has several frames.  | ||
| Parameter | Expected Type | Description | 
| spriteId | An integer | The ID of the sprite state. This id IS retrieved when calling createSpriteState. | 
| Returns | ||
| 
 Returns two values, width and height, or nil in case the sprite state doesn't exist.  | ||
Example
local w,h = video.getSpriteStateSize(sprite)