Sprite::setWidth()
Draws the sprite this wide, whatever its costume's width and size: for buttons, panels and platforms. With setNineSlice(int, int, int, int) the corners keep their size.
Examples
Syntax
Java
.setWidth(width)
Parameters
| Name | Data Type | Description |
|---|---|---|
| width | double | the width in stage pixels; 0 to follow the costume and size again |
Return
void