removeSprite(layer,id) , method of scene

Remove a sprite from this layer of the world.

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.scene.removeSprite(0,1);

See all methods of the api.