Legomite Posted August 28, 2015 Report Share Posted August 28, 2015 this.sprite.click = this.sprite.tap = function(event) { game.scene.chunkList[event.target.chunk].removeChild(event.target); }How can I fix this code so that it will delete a sprite? It's in a container called chunkList[0 - ~9] and I want to delete it. this.sprite.chunk has been defined with 0 - ~9 For some reason the code won't work. Link to comment Share on other sites More sharing options...
Recommended Posts