removeAllSprites , method of scene

Remove all sprites (both physical and non-physical) from the world.

Parameters:
name type description
layer int layer of the world (must be >= 0)
UB.scene.removeAllSprites(0);

See all methods of the api.