Mirroring a characters movements with yours?

KillerPenguinStudiosKillerPenguinStudios Member Posts: 1,291
edited May 2012 in Working with GS (Mac)
Hello All,
In the scene there is you (the player) and another character. What I am trying to accomplish is when I pick up an object the other characters left and right movements mirror mine. I collect the object then when I move right one space the other character mirrors me and moves right one space, if I move left three spaces then the character mirrors me moving left three spaces and so on. What is the best way to go about doing this and how might I go about doing this??? Thank you so much in advance guys!

Thanks,
image killerpenguins image

Best Answer

  • UtopianGamesUtopianGames Posts: 5,692
    Accepted Answer
    You would need a game boolean to set the initial follow when you collect the "object"..game.collect will do but you can call it what you want.

    When you collect the object (actor overlaps or collides) change the game.collect to true then in your other character do if game.collect = true (then use the same controls you have for your main character).

    Darren.

Answers

  • KillerPenguinStudiosKillerPenguinStudios Member Posts: 1,291
    Thank you so much @UtopianGames I was trying something totally different that wasn't working right and now it is. I don't know why I didn't think about going about it this way. Thank you so much! You are always a huge help!!!

    Thanks,
    image killerpenguins image
Sign In or Register to comment.