How to correctly set scoring and player naming in agar.io-like mobile network game?
Hello all, Hope you are all doing fine.
I am currently working on a game like agar.io using Unity version 5.5 something. Later this game will be on Android platform and network multiplayer. So far What I have achieved are: - Multiplayer networking so far working well, I set up max 2 players. however, I only tested on local computer for this - Player, Food, they already synchronized
My next to-do is to add scores and player names. I have been trying but no luck.
Firstly, I couldn't know until now, how to decrease food number counter in the server, I mean in another script file, every time player eats a food. Second one, to attach player score, to the corresponding player's object, to say, floating under player's object visually and to make score counting works Lastly, after all foods eaten, game stops and a summary text showing player and scores
For the player name, I achieved that. But somehow, after my attempt to add scoring, the player name features got broken. I cant figure out why.
So my state now is, I undo all those features and so now my game is just without naming and scoring.
I hope my explanation clear, since I am a non-native English.
Thank you all for the attention.