-
I can’t figure out how to move two characters with one control.
-
I imagine the movement as in the movie Anai Alection.
-
I’m Japanese and I’m typing the text in English translation, so I’m sorry if it’s hard to understand.
It’s impossible to posses in 2 or more characters for one controller, as it’s impossible to one player has several controllers.
Is it First, Top-down or Third Person game (or other type there you directly possess to single pawn)? If so, I’d probably do something like this:
- In PlayerController make an extra variable to store your second character (first is possessed, so reference to this character automaticly stored in controller).
- Handle player input in PlayerController: on any input event get possessed pawn and call suitable events, after that get a second character from saved variable and also call similar events with modificated input values (for example, multiply AxisValue by -1 for MoveRight).
I have never seen Anai Alection, so maybe I don’t understand what you want correctly, but general idea of controlling several pawns with one controller is same.
It’s not a perfect solution. Maybe, there is better way to control several pawns, but I have never tried to do so.
1 Like