destroying objects in collisions

BlitzMax Forums/BlitzMax Beginners Area/destroying objects in collisions

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Ok I'm totally new to image collisions, usually I just do a point_distance check. My objects are drawing to buffers and testing their sprites against them. My question is how do I destroy the object drawing the image to the buffer.

Basically I have shots drawing to a buffer and ships testing their sprites against the buffer. How do I destroy the shots upon ship collision?
I think I might be doing this wrong: left_sprite is the ship image. How do i destroy the bullet that it is colliding with?
If CollideImage(left_sprite,x,y,0,2,0)
		lives:-1
		
EndIf