I am writing a game in which I have a Java server/client system set up.
Everything is working great, but I reached a slight problem. I have set up a basic health system, and a GUI to go with it (for example, health bars over everyone's head), but the problem happens when I want to give every player a separate GUI (e.g. an inventory).
Obviously, it should be client-side, but I cannot for the life of me figure out how to do it. Everything that I tried resulted in the GUI's painting on top of each other and being visible for all clients.
So, how would I do it? Any input is helpful. I have quite a bit of experience in Java programming, just not with Java servers.
The tutorial I followed was this Youtube video (although it seems basic, I was unaware how to do server programming at all). I can provide some of my attempts if I still have it. The server is set up towards the end of the playlist.