Mirroring a characters movements with yours?
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,
killerpenguins
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,


Best Answer
-
UtopianGames Posts: 5,692
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
Thanks,