TextureRegion:setRegion

From GiderosMobile
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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