Quantcast
Channel: Multiplayer
Viewing all articles
Browse latest Browse all 16796

[Solved] Problem syncing variables

$
0
0
I am making a simple game of tag in unity. When a player who is 'it' touches a player who is 'not it', the player who is 'not it' becomes 'it', and the player who was 'it' becomes immune for a small time. The problem is, players bumping into each other is handled locally. But sometimes if the collision happens too fast, only the client who controls the person who is 'it' recognizes the collision and the game states get out of sync. Here is an example:

View attachment 168000


On the...

[Solved] Problem syncing variables

Viewing all articles
Browse latest Browse all 16796

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>