destroy(destroyChildren)
Destroys the TileSprite. This removes it from its parent group, destroys the event and animation handlers if present
and nulls its reference to game, freeing it up for garbage collection.
Parameters
Name | Type | Argument | Default | Description |
---|---|---|---|---|
destroyChildren | boolean | <optional> | true | Should every child of this object have its destroy method called? |
- Source code: gameobjects/TileSprite.js (Line 178)
Please login to continue.