I am working on a game for a university project that is a 2 player local co-op game. I want this game to have both a 1 and 2 player option, with the 2 player option allowing players to play in one of 3 control schemes:
- Both players on the keyboard, using WASD and IJKL
- One player on the keyboard and another on a controller
- Both players on controllers
I have been extremely stumped on how to do this the past few days and would seriously appreciate some help. My experience with Unreal is somewhat limited.
I have tried the approach of making these characters both as separate blueprints with their own individual code, and as a single blueprint with shared code, both of these approaches have had their issues. I am very inexperienced with how PlayerControllers work, and from my understanding you cannot have two PlayerControllers or Pawns using the same keyboard.
I would really just like a step by step guide on how to set up my players, do I do it as one blueprint or two separate ones (they share similar code between each other), and how do I allow these players to be played in these control schemes listed above, as well as be played in 1 player mode.
I would very appreciate any assistance. I am using Unreal 4.27 for this project.