How can I change my board game into multi player?
I have this board game that I created for single player. It has 48 spheres which get instantiated when the game starts. I want to change this game in to multi-player. When I Network.instaintiate the 48 spheres in both the server and the client, the number of spheres is not equal in the server and client. the spheres get instantiated twice for the host. This causes an error.
How can I instaintiate the sphere with out causing an error or mismatch in both players.
These spheres have no owner. Any of the players can play with them. How can I make the sphere open for all players with out network ID.
@Abera Use a NetworkIdentity and dont check any of the boxes.
Also, why you're instantiating them twice is hard to say when we dont have the code. But you should make sure you only run Network.Instantiate on the server and only once. Don't run it for each player. You could use a check "if(isServer)" before you run it. $$anonymous$$ake sure the spheres have a networkidentity and that they're added to "Registered spawnable objects" in your Network$$anonymous$$anager.
Answer by Abera · Mar 07, 2016 at 12:11 PM
Thanks Salmjak,
Sorry for my vague question. What I wanted to ask is how can I create Objects in a network that can be manipulated by both the host and the client with out changing network ID if possible. I want both players to have the ability create objects and destroy the objects they created and objects created by other players.
Thanks,
Your answer
Follow this Question
Related Questions
Unity Networking 1 Answer
[HELP] Problem in multiplayer networking code in c# 0 Answers
Networking Fps Cameras 0 Answers