constrain to previous actor

hey guys, I have an actor1 on screen that spawns actor2. actor then moves to the actor 1. when actor2 collides with actor1 it spawn another actor2 which also move to actor 1. I am trying to make it so that when actor2 hits actor1 it is constrain to actor1 and then when actor2 collides with actor2, the new actor2 is constrained to the old actor2 and so on. I am making a game that stacks blocks on top of each other and I am trying to do it without using a new actor for each block, I am hoping changing self.ID will work but I still can't figure it out. any thoughts? Thanks.
SM
SM
Comments