question about constraining actors

Hey guys, so I have this actor set up to constrain it's x and y to that of another actor when it collides. then I have it so that you can rotate the actor. I also have it set up that when they collide, another actor is spawned and should collide like the first one and be constrained as well. the problem is that when the second actor is spawned and collides with the original actor the first actor that collided disappears. I'm totally stumped as to why. any ideas? Thanks.
SM
SM
Comments
Since they're the same type, you probably have to do and init thing if you're spawning them (like on self.time=). On the init, do:
if self.timer==0 then
{
if actorcount==1, self.ID=1
if actorcount==2, self.ID=2
actorcount= actorcount+1
}
that time=0 gate makes it so 1 doesnt become two when two is spawned
if you mess around with self.time, then just use a flag isIDed=0 or something.
Sorry if that's off base but it's my first guess of what's happening.
That's why I told you to ID them above.