Walls and Multiple Instances of an Object

CaptMediaCaptMedia Member Posts: 60
edited July 2012 in Working with GS (Mac)
Hi guys, okay so my issue is I have a mover actor, then two other instances of another actor called shape (by instances I mean i dragged the same object onto the scene twice), and walls in a scene. I am trying to use the mover actor to collide the two other actors of the same instance, everything was going great until I tried to implement walls. Since my mover snaps to a grid when it moves I have added a rule that says: when the actor shape is colliding with a wall prevent the mover from moving towards the actor. But the problem is if I have two instances of the same actor and one is against the wall while the other is not i cannot move either of the actors in the direction that the wall is. I know the best fix would probably be to duplicate the actor and attributes to have two separate actors rather than two instances but I wanted check on the forums to see if you guys had any suggestions to save my game from being loaded down with move actors and attributes. I would greatly appreciate any help!! Thanks in advance!

Comments

  • ericzingelerericzingeler Member Posts: 334
    Sorry, I'm having a hard time understanding this. I think I can help you, but please rephrase your problem to make it more clear. Thanks!
  • CaptMediaCaptMedia Member Posts: 60
    @eezing
    I'm trying to use a mover actor to move another actor across the scene on a grid this is the part that is all working okay. However, I am having trouble figuring out a way to stop both the mover and the actor when the actor runs into the wall, so that the a=mover actor does not push the other actor into the wall? I have found a way to do this but it does not complement the other aspects I need to have working in the game. I want to be able to add another actor and be able to control the two actors separately using the mover, so that if one is against the wall it does not effect the ability to move the other? Thanks
Sign In or Register to comment.