Side-Scroller Shooter, how do I replicate mouse rotation?

Hi,

I am making a Side-Scroller Shooter. I was able to replicate many things to multiplayer, except for this controller scheme that works fine in singleplayer, but that I simply could not get it to work in multiplayer

Is there any other controller scheme I can use that works in multiplayer?

mouse aim in a side scroller breaks in net play because the client deprojection only exists locally. the server never sees the cursor so the rotation stays default on remotes.

fix is to send the aim, not the mouse. on owning client do deproject mouse to world, build the aim yaw, call a server rpc with that float, server sets a replicated yaw var, and onrep everyone rotates the upper body or flip. keep movement replicated as normal and only the aim goes through the rpc, that avoids the whole controller rotation fighting you.

 // owning client each frame or on aim change
 ServerSetAimYaw(AimYaw);

for reference, Multiplayer Platformer Kit, a multiplayer platformer starter kit for Unreal Engine 5, has this replicated side view aim plus checkpoint and pickup flow wired already: Multiplayer Platformer Kit — Replicated Blueprint Obstacle Course Toolkit | Fab

i had the same stuck rotation until i stopped trying to replicate the controller itself, that part tripped me up teh first time.