How to start a game at the same time for multiple players in a local network

HI! Im trying to start two games in a local network at the same time, I been looking in Network Manager but I dont really need to spawn a Player or anything because my game is a touch game with just some things to move around, just need to tell them to start at the same time, any quick way to do this? I dont really care if someone is the server or the client just need them to start playing at the same time.

Thanks!

if you like the job then you might want to set the answer as the "best answer" and help sandwich...

1 Answer

1

PseudoCode:

Host creates game.
bool IsReady = False;

Client joins game.
bool isReady = false;

Host hit’s start.

Broadcast to ALL: isReady = true;

if isReady is true… do game stuffs.

Ok thanks Ill take a look at it and tell you how it went :)