Difference between revisions of "TextureRegion:setRegion"

From GiderosMobile
Line 15: Line 15:
 
'''width''': (number) <translate>width of the region</translate> <br/>
 
'''width''': (number) <translate>width of the region</translate> <br/>
 
'''height''': (number) <translate>height of the region</translate> <br/>
 
'''height''': (number) <translate>height of the region</translate> <br/>
 +
 +
{{TextureRegion}}

Revision as of 02:20, 4 December 2019


Available since: Gideros 2012.08.2
Class: TextureRegion

Description


Sets the coordinates of the region.

 TextureRegion:setRegion(x,y,width,height)

Parameters

x: (number) left coordinate of the region
y: (number) top coordinate of the region
width: (number) width of the region
height: (number) height of the region