Hi,

I'm putting many obstacle objects in my game to collect points.
Once the player collides with the obstacle object it will appear some particle effects, then, remove/hide the obstacle object. The obstacle objects have only a single action implemented.

Code:
function HandleEventImpact()
{
	if (event_type == EVENT_IMPACT)
	{		
		ptr_remove(entWaterBottle);
	}
}

action actWaterBottles()
{
	entWaterBottle = my;
	my.emask |= ENABLE_IMPACT;
	my.event = HandleEventImpact;
}


Any idea how i could remove the single entity object?

Thanks