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

**URL:** <https://forums.unrealengine.com/t/side-scroller-shooter-how-do-i-replicate-mouse-rotation/435934>\
**Category:** Multiplayer & Networking\
**Tags:** side-scroller, shooter-game, Replication, unreal-engine, Multiplayer, question\
**Created:** [October 19, 2018, 3:54am UTC](https://forums.unrealengine.com/t/side-scroller-shooter-how-do-i-replicate-mouse-rotation/435934 "2018-10-19T03:54:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_6decf5ce](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_6decf5ce](https://forums.unrealengine.com/u/anonymous_user_6decf5ce)\
**Post date:** [October 19, 2018, 3:54am UTC](https://forums.unrealengine.com/t/side-scroller-shooter-how-do-i-replicate-mouse-rotation/435934/1 "2018-10-19T03:54:54Z")

</div>

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?

 ![257013-print.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/3/d/93df9cd46b3e15e37882da55e2b8104dda85ef39.png)

---

<div class="post-metadata">

**Author:** ![ShadowBr0kerz](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/shadowbr0kerz/32/1201558_2.png) [@ShadowBr0kerz](https://forums.unrealengine.com/u/ShadowBr0kerz)\
**Post date:** [October 18, 2026, 4:34pm UTC](https://forums.unrealengine.com/t/side-scroller-shooter-how-do-i-replicate-mouse-rotation/435934/2 "2026-10-18T16:34:33Z")

</div>

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.

```auto
 // 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](https://www.fab.com/listings/a8d48c0f-6a47-4db6-870c-e02e714dfc05)

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