Working on Unreal multiplayer

This week I've been working on my multiplayer game and I learned a lot about replication and the Physics Handle Component.


First of all, I added some switches to activate the mechanisms of the platforms, but I got stucked because I didn't know a class just can replicate elements that ownes to it, so I can't replicate the platforms movement inside of the character's functions. I fixed it replicating the functions to activate the switches to let the movement replication to the corresponding classes.  



I also added a mechanic to pick balls, I want one of the player to take a ball and put it on a platform wich will activate the mechanism which will allow the other player to cross to the next section. It worked using a Physics Handle Component, but some weird thing are happening when a player takes twice an object (the distance between the player and the object increments) and if the player takes a ball created by the balls spawner (the z position of the ball has a decrease).
I noticed that the ball position is not replicated while being handled by the player (even if I call the functions on the server and the client) but its position is replicated when is pushed . I think I missed something about replicate Physics Handle Components, I hope I'll explain the solution next week 😋


These problems made me realize that I have to learn more about how Unreal multiplayer works, so I started a course about it. The first videos were about things that mostly I knew, although I learned some interesting things (how to start an Unreal game as a server and as a client using cmd, for example).


I think this is all for this week, every question and suggestion will be weel received.
Bye!!

Comments