constrain to previous actor

SAMmanSAMman Member Posts: 228
edited November -1 in Working with GS (Mac)
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

Comments

  • SAMmanSAMman Member Posts: 228
    Oh, i didn't know so many constraints would crash, I have the screen divided into a grid so probably like 20 constraints. is there a better way to get the same effect without constraints? Like respawning the actor2 everytime actor is moved?
  • SAMmanSAMman Member Posts: 228
    also thanks, I owe you a lot of thanks for helping me out with my first app!
  • SAMmanSAMman Member Posts: 228
    is 20 too many?
  • SAMmanSAMman Member Posts: 228
    so, could you still explain how to do that? Thanks.
Sign In or Register to comment.