Sign In Register

How can we help you today?

Start a new topic

Simple UE4 demo

Here is a simple demo of a multiplayer third-person.


https://www.youtube.com/watch?v=bf4vizSu2RM



Hi Alex,


Many thanks for posting this. Would you care to share some more details of how you achieved this for the benefit of other users ?


Regards,

Liam

I will try to explain a little!!

1.Login and start session I took from example of the Unreal SDK teris Game. With minor changes.

2.From the getting-started unreal-cloud-code also used the method to download and save the coordinates. Added save and load rotation.

3.I created blueprints actor character for local and network players.

4. After obtaining information about all the participants of the match, I spawn in my scene Network Character in obtained GameSparks server positions.

5.In blueprint local character, I call SendFloat event of GameMode. Transfer parameter Scale intercepted by player controller in local char.

sxL3cLpb7kH6NLVqJH4E9HX2wlVE4SmaCQ.png

7Boyi89T8KR1h1nk-hUdPnhH5m8JA_FJRQ.png


6.  In the Game mode 


VzwcCaHcM_x7e-vgdhuqKHqe9cjMyS_TFA.png


7. The data obtained from the other players are handled at the image above and transferred to Network Character.


8. Network player movement.


A5fS8j3htUwx77sQnMnoseTAEc1MzGWpZQ.png



Like that )))

If I have enough time to complete a full demo be sure to publish it here.




Hi Alex, 


This is great!


I am trying to replicate your results however I have come into a problem.

My network player just floats in the air and never moves, I have tested all the inputs and everything is going through correct (have put print screens to see values etc), however it just does not move.

Is there a specific option in the network player I am missing or something?


Thanks

Yes, there are some non-standard settings.


pVNSkUF84WAh1oi7xf_ei2UxqtxPliLvKQ.png


I hope this helps, I had a problem, but do not remember exactly.

Not to worry, I did not have "Run physics with no control" turned on, this fixed it :)

I have an extra layer on top of this that confirms the location of each player so that it wont be out for to long if it goes out of sync.


However if physics ever comes into it it break it, do you know of a way to replicate the same physics on each client?

Login to post a comment