Hello Forum-goers! I’m getting started with my first project to learn the engine and have already stumbled into a problem.
I want to create a ‘player’ which is composed of multiple other players. That is, I want to have multiple controlled sprites move together in a group with the same input. I initally started by creating two youtube tutorial projects to get a feel for the engine before I tried something on my own and it seems like Unreal strictly enforces that only one entity recieve input via a controller or character class. I tried working with ChatGpt to get something that I could work off of but it turns out that’s not very helpful if I don’t know what it’s telling me to do…
So my question is this: How can I propogate the input to all my party members using one controller class?
Please let me know if any other information would be helpful, and thanks for your help!
I don’t know all the advanced methods likely open to C++, but a simple workaround might be to link different members (or body parts) together with constraints. Essentially, each player’s character mesh is just a limb or robot section (or whatever), which combines to form the whole–multiple actors, which merely seem to be one when the right conditions are met.
I think what you mean is that you would have one object with multiple sprites within it and arranged with spring arms or something similar. This is something I considered, but wasn’t able to figure out how I would animate the sprites separately.
Would it be possible to have each of these sprites animated like this? To be clear, all I want is for them to have a walk cycle that is flipped towards the direction of movement
Oh okay, I misunderstood that you wanted to make a multi-player game with each player controlling sections of the same character.
For what you’ve posed; why not just use AI and make them follow at a fixed offset? Or the below may be an option if you need you input to control them:
You were correct in assuming that the game is single-player; think Vampire Survivors with a party that moves as a group with WASD.
That video looks close. What I would need from there is to combine those controls so that the two players move in the same direction. Does that make sense?
I’m going to continue to tinker with the multiple-sprite-one-pawn idea for now. I think that might be what I need.