This function simply destroys all instances that are found to be in collision with the specified position. Collisions are based on the mask of the instances, and if any part of the mask over-laps with the target point it then the function will destroy that instance. Instances destroyed in this way will trigger their Destroy and Clean Up events.
|x||The x coordinate of where to destroy colliding instances.|
|y||The y coordinate of where to destroy colliding instances.|
This will destroy all instances that collide with the position of the mouse cursor when the left mouse button is pressed.