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

Network-Problem: random var is created with every client, wrong pattern?

$
0
0
Hey guys,
I am creating a multiplayer-quiz-game. Singleplayer worked.

I built it this way:
MainMenu Class, Game Class (they are both scenes, too. They loadScene each other).

Now I am expanding it to multiplayer.
Therefor, I created an Interface MPLobby (from Main) and MPUpdate(from Game) and a Class MultiplayerCon, which is a singleton and has a public var MPUpdate and public var MPLobby.

At the moment, I am handling events locally for the own events (e.g. calling functions and rendering...

Network-Problem: random var is created with every client, wrong pattern?

Viewing all articles
Browse latest Browse all 16796

Trending Articles



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