Multiplayer game, ball color doesn't update

hi,

i made a simple scene in multiplayer game.

when the server starts, a ball appears and can move around (player 1).
when the client connects, his ball appears and can move around (player 2).

both players see each others.

now, when a player clicks on another player, the clicked player (sphere) turns red.

the ball is turning red but only for the client who clicked. not in the clicked players view…

how can i synchronize the view of every player to display the red clicked ball ?

thanks,

mike

nobody’s got an idea ?

Hi, i didn’t have the chance to use networking yet but your explanation makes me think you’re only changing the sphere’s color locally, in other words, you change the color of the sphere only in the application run by the one that clicked, but not on the other clients applications. Try sending a message to them saying that the color changed? Since you know how to connect clients you should know how to do this…

hi,

you’re right, i tried to figure out how to “inform” everyone".

i think i finally succedded 30 min ago by using an rpc call but not so sure if its the right solution…

a C# example would be greatly appreciated :slight_smile:

I am not great with Networking, but couldn’t you make an RPC function that updates the color?