Two actors moving together

ledbugledbug Member Posts: 7
edited November -1 in Working with GS (Mac)
I'm sure that this questions was already explained but i can't find the answer...I have two actors, first is on the second one. I want to make them moving always together. Can anybody explain me how to do that?

Comments

  • forkliftforklift Member Posts: 386
    make 2 game level attributes of type "real". I'll call them PlayerX & PlayerY

    Rule in 1st actor:
    Constrain game.PlayerX to self.position.X
    Constrain game.PlayerY to self.position.Y

    Rule in 2nd (follwing actor)
    Constrain self.position.X to game.Player.X
    Constrain self.position.Y to game.Player.Y
Sign In or Register to comment.