- Home /
The question is answered, right answer was accepted
Networking (messaging a variable to remote player on hook)
Hello guys,
I'm developing a simple network multiplayer turn based board game. Below is the basic game board at start. Green starts first, selects a number of tiles, rolls dice and if it is higher than some number selected tiles turn into green. Then, it is red player's turn. Very basic. So far, I completed the tile selection, rolling dice, winning or losing tiles, all done. I'm trying to build this game as a network game which can be played by remote players. However, I have a lot of basic problems regarding networking. I've watched hours of videos, checked tons of questions posted here and many other forums but couldn't figure it out. What I need is simple pass messages (for example number rolled by other player). Do you have any tutorial or sample projects doing this? Please and thank you :) I can share my files if you are interested.
You might want to look into a TCP networking example with Unity. These tutorials are typically advertised as How to $$anonymous$$ake a Chat System, which is essentially what you want. Each dice roll is a message you want communicated to another client.
Answer by ojelibalon · Sep 07, 2018 at 02:59 PM
you could try sending network messages https://docs.unity3d.com/Manual/UNetMessages.html
Answer by lastjanissary · Sep 09, 2018 at 08:59 AM
Thank you guys, I managed to do it with a Syncvar.
Follow this Question
Related Questions
Unity Multiplayer game not working 0 Answers
Can't access Multiplayer Network Prefab script 0 Answers
NetworkClient handler is not getting called. 1 Answer
UnityWebRequest post freezes in WebGL build 1 Answer
Unet Procedure Calls? 0 Answers