- Home /
Beginner's Networking Questions
Hi, For my networking game I am making a game where me and my friends can connect to a server and play as our characters. I've got character customization done client sided and it should be easy to send over the server as it is just strings.
1) What I am confused about is monster spawning. The monsters need to be network instances that the players can damage. However the monsters need their physics to be calculated server sided don't they? So do I need my maps to all be on the server aswell?
2) My game has more than 1 scene. How would I network this? I guess each player can just have a string/int for which floor they are on, and I only network that content?
So that's what I'm unsure of. Thanks, Alex
Yea got #2 prototype working. Not sure how to do #1. I could only send their X and Z coordinates and calculate Y physics via the server..? Idk
Physics can either be done server side so everyone gets the same results, or one client could be responsible for physics where and all input information (forces/whatever) is sent to this client to calculate and communicate back to every other client...but the latter is more suited to cloud servers, if you have your own dedicated server, I'd use that ins$$anonymous$$d.
No need to network the physics for everything though, nobodies going to care if two cans blowing in the wind on the floor don't match up. (Unless its a game about shooting can's on the floor with your friends LOL)
Your answer
Follow this Question
Related Questions
Unity networking tutorial? 6 Answers
Changing to online sceen in multiplayer 0 Answers
MMO server side programming 0 Answers
How can I spawn a GameObject on all players in my multiplayer game? 0 Answers
Players Not Showing 0 Answers