removeSprite(layer,id) , method of controller

Remove a sprite from this layer of the controller.

Parameters:
name type description
layer int layer of the world (must be >= 0)
id int identifier of the sprite (must be >= 0)
// remove the Sprite 1 from layer 0.
UB.controller(playerID).removeSprite(0,1);

See all methods of the api.