- Home /
Creating a Multiplayer Scoreboard?
I have been trying to find a simple example of how to create a multiplayer scoreboard but i cant find any. So how do i create a multiplayer scoreboard? C# If possible.
Answer by Ian-McCleary · Aug 20, 2013 at 07:35 PM
I asume you are making an FPS game. There are a series of videos on youtube but im pretty sure it is JavaScript here is the link if you would like to check them out. just find the tutorial that covers scoreboards! Clike here for the youtube playlist!
Answer by HeliosDoubleSix · Aug 20, 2013 at 07:12 PM
If you can figure out how to make a multiplayer game I find it hard to believe the scoreboard is the difficult part?
Be more specific what aspect are you struggling with, the GUI? the networking code? how and where to store this information?
http://www.paladinstudios.com/2013/07/10/how-to-create-an-online-multiplayer-game-with-unity/
Im struggling on the RPC thing and how i can make a variable that are the same for everyone. Btw im actully using a heavy edited version of that link you posted.
Sounds like you may have the concept wrong, you should have the score code running on both clients and what is communicated between clients is what the other client is doing. Then to be careful of dropped communication you need to keep things in sync periodically enforcing or interpolating what the current state of everything should be, various strategies to which clients data do you honor if both are out of sync due to lag say you can instantly kill a player and 2 players both do this at the same time you have both dead instantly when technically you should only ever be able to kill one if it wasn't for lag, so you can check the timestamps since first connection and honor the client who did the kill first then communicate the new state back to the other player possibly bring a player back to life suddenly even though they just died :-)