reshapeSprite(layer,id,properties) , method of controller

Change the geometry of a sprite on the controller.

Parameters:
name type description
layer int layer of the world (must be >= 0)
id int the identifier
properties …Object each with parameter values
// change the height of Sprite 1 on layer 0

UB.controller(playerID).reshapeSprite(0,1,{height:100});

See all methods of the api.