Jump to content

Error caused by destroy()


Biggerplay
 Share

Recommended Posts

I'm working on a game which needs to destroy() sprites when they are not needed. The problem is when I do that it's causing this error during the game

 

Uncaught TypeError: Cannot read property 'length' of undefined phaser.min.js:6:30774
  b.Signal.dispatch phaser.min.js:6:30774
  b.Signal.dispatch phaser.min.js:6:29120
  b.InputHandler._touchedHandler phaser.min.js:9:17906
  b.Pointer.start phaser.min.js:8:23849
  b.Mouse.onMouseDown phaser.min.js:8:18347
  b.Mouse.start._onMouseDown phaser.min.js:8:17770

 

 

Does anyone have any idea what would cause such an error?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

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