albear
Jan 12, 2009, 04:08 PM
OK I have my collision detection going but I'm not sure how to remove an object after it has collided with another.
I have
if (mozzieRectangle.Intersects(donutRectangle))
mozzieHit = true;
then later on
if (mozzieHit)
{
//remove balloon
}
my problem is I can't figure out how to get rid of the object.
I have
if (mozzieRectangle.Intersects(donutRectangle))
mozzieHit = true;
then later on
if (mozzieHit)
{
//remove balloon
}
my problem is I can't figure out how to get rid of the object.