Multiplayer syncing

I made a card game and it runs beautifully in singleplayer. But when i try running it in multiplayer, the card objects arent syncing well. Theyre all blinking on the other players screen if the cards are moving/being dealt to the players. Ive tried changing the sync rate of the objects. Everything ive tried doesnt work. All the card objects blink and flash between animations until they are in the players hand. Any ideas? Maybe im missing something about multiplayer. Is there any easier way to make it multiplayer? There are no controls for anyone other than the host…just to deal the cards, everything else runs automatically.

Did you try changing the ownership of some objects to other players or synchronizing everything so everyone can see it?

The object is owned by the host. Everyone can see the object. No one interacts with the object… Its one object thats having the issue. “playingcard” that has 52 animations. At the beginning of the scene, the deck of cards is created, shuffled and then the cards are dealt to the players. As they are being dealt, they start blinking on the other players screens and flash between animations until they stop moving.

Does it have any behaviors attached to it?

Just multiplayer behavior. If i dont have that on the animation of the cards dont sync between players and the blinking doesnt happen. But once i have it on, the animations are the same for all the players but the card object blinks as its moving. I switched the ownership of the card object to player two and it stopped blinking for player two but now its blinking for me…lol…so it seem like some syncing issue.

Change the ownership to host and then synchronize it to all players. Then if it’s clicked or interacted with by a specific person, change the ownership to that player.

The owner is always the host/player1. No one interacts with any of the objects. Everything is done automatically. The cards are shuffled, dealt and discarded all automatically. Something is going on as the cards are being dealt…

Can you send a picture of your code? I’ve done a lot of stuff with Multiplayer so seeing your code might help me better understand.

Take it easy on me…im a newb lol. It all works perfectly in single player.

It’s okay, so am I kinda. I think what might work is putting the card events under a “if owned by player” condition.

Dude, youre a boss!!! Thats actually helping!! The dealt cards are no longer flashing!!! Thanks!!

No problem! I’ll check out your game when it’s finished!

1 Like