Greetings, Mortals.
I have a rather basic question on programming online games.
How do I Synchronize 2 Global Variables with each other?
Example;
The game has a global variable to keep track of the weather.
When the game starts that variable should = 0, and then begin
counting upward to determine the weather.
At first the weather will be clear, but then will get snowy ect, as
the variable counts upwards.
When a second player joins the game, his Global Weather variable
will = 0, since for him, the game just started.
So then the first player might be in the middle of a snow storm
while the second player has clear weather.
How do I make the 2 Weather Variables match up?
The Adventurous WERDNA(Currently caught in the middle of a snow storm)
I have a rather basic question on programming online games.
How do I Synchronize 2 Global Variables with each other?
Example;
The game has a global variable to keep track of the weather.
When the game starts that variable should = 0, and then begin
counting upward to determine the weather.
At first the weather will be clear, but then will get snowy ect, as
the variable counts upwards.
When a second player joins the game, his Global Weather variable
will = 0, since for him, the game just started.
So then the first player might be in the middle of a snow storm
while the second player has clear weather.
How do I make the 2 Weather Variables match up?
The Adventurous WERDNA(Currently caught in the middle of a snow storm)