Table of Contents

Sprite:removeFromParent

Available since version: Gideros 2011.6

Description:

If the sprite has a parent, removes the sprite from the child list of its parent sprite. This function is equilavent to:
function Sprite:removeFromParent()
		local parent = self:getParent()
		if parent ~= nil then
			parent:removeChild(self)
		end
	end

Syntax:

Sprite:removeFromParent()