How Do I Remove an object on click?

How can you destroy an object on click in Phaser 3? What if you have many objects on the stage? With this code, the object clicked gets passed to the function and destroyed

Leave a Reply