Hello everyone,
I’m currently developing a multiplayer mobile game with a touchscreen interface using virtual joysticks. While the game functions well for a single player, I’ve encountered a problem when additional players join the match.
Issue:
When a second player joins, the touchscreen interface controls only affect the last joined player. Notably, the touch controls exclusively manage the last player, whereas keyboard inputs correctly control their corresponding players.
Details:
- Aiming & Rotation: The controls only work for the last joined player, even when attempting to control from another player’s screen.
Movement: Similar behavior occurs for joystick movement; it only affects the last joined player, regardless of which screen the joystick is manipulated on.
Keyboard Functionality: Keyboard movement works correctly for all players
Project Settings:
Here are my project settings for reference:
Touchscreen Interface Setup:
I have set up the touchscreen interface as follows:
Additional Information:
- The
RpcSetupControl
function is replicated from the server to the owning player controller.
I have tried several solutions to resolve this issue, but unfortunately, none have worked so far. Any insights or suggestions would be greatly appreciated!
Thank you!