Hello! First at all thanks for your answer! Let me clarify,and sorry in advance for my bad English
So Actually to be short, what i’m trying to do, is to have on Both [Client/server] Player including movement [facing direction] & sprite animation replicated correctly, which is an headache for me at moment
i’m actually working with UE 4.3 preview version from morning and i restarted from scratch using 2D Template side scroller which i found is a very good base to start even if too much basic for now :p, and i would like to help to make it really more complete.
My Goal is to achieve an Advanced version who Handle most commun 2D movement [Idle, Run, Jump, Fall, Landing, Animations) in 8 Direction [+ Neutral] and everything Working Online mean everything replicate including Animation on both Client/server
Update : Billy , i’ve almost everything working except on client side, for a reason i ignore some animation and facing direction of client is not updated correctly on server, which is strange i always thought that most difficult was to have on client things worked as expected
So let me show you my code, in order :
01 - easy task : i have mapped 6 Axis Input, [1 for Horizontal Movement, 1 for Vertical Movement and 4 for Diagonal Movement) see Attached picture it’s very simple and i can handle at end All 8 Direction + Neutral. Every time i hold a direction , i change value of a Variable name [Axis Direction] specified replicated
02 - now about how i handle movement, it’s pretty similar than what done with his mapped Moveright axis, instead, i’m using my replicated Variable [Axis Direction] and voila!! Now if you run 2 Players you will see that on Server and Client, Both are replicated, except one Issue, when client change of rotation, only client display change, from Server side, we are not viewing player change.
03 - So i’ve added, Jump animation, fall animation and landing animation, everything seem to work, but as facing direction, only client view these one.
So my question is how guaranty , that animations and change of facing direction from client are replicated on Server
i attach also my blueprint
Thanks, and Thanks Also for great idea of including 2D Template !!!
Thanks in advance for your help