Dash Mechanism is very glitchy in unity photon fusion multiplayer
I am working on a dash mechanism for 2D multiplayer game in unity with photon fusion. My requirement is that when the player presses LShift, they will move at a lower speed and a UI to charge the slider will be shown. The player can hold LMb to their desired charge and release to dash. Later which I want my player to move with default speed. Also the player by pressing RMb, can cancel the charge on or before charging so that he/she doesn’t dash and move with default speed.
Change in player speed causes a jerky movement in unity photon fusion multiplayer
I am working on a 2D multiplayer game in unity with photon fusion. My player has a default player speed say 5f. I am changing the player speed (to 10f) when I want the player to move faster for a specific duration. Later which I want my player to move with default speed. The change in speed gives a jerky movement especially on the client. The jerkiness happens when the speed is changed from default to 10f, the movement with speed 10f is fine for the specific duration and again while changing the speed from 10f to default gives a jerkiness. I believe the sudden drastic change in speed is being mis-predicted and correcting this predicted value is the reason for the jerky movement.