Difference between revisions of "TextureRegion:setRegion"
From GiderosMobile
Line 8: | Line 8: | ||
TextureRegion:setRegion(x,y,width,height) | TextureRegion:setRegion(x,y,width,height) | ||
</source> | </source> | ||
− | '''x''': (number) left coordinate of the region | + | === Parameters === |
− | '''y''': (number) top coordinate of the region | + | '''x''': (number) left coordinate of the region <br/> |
− | '''width''': (number) width of the region | + | '''y''': (number) top coordinate of the region <br/> |
− | '''height''': (number) height of the region | + | '''width''': (number) width of the region <br/> |
+ | '''height''': (number) height of the region <br/> |
Revision as of 10:45, 23 August 2018
Available since: Gideros 2012.08.2
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