Jump to content
This forum will be closing down. Please move to the respective dedicated project forums.

Problem with deleting sprite within a event


Legomite
 Share

Recommended Posts

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

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...