In my variables I have found out that my main "counter" variable which is incremented in the main game loop is remaining at 0, which means the main AddTimer is not functioning at all when a new room is created. Again, this only happens on rare occasions, but it happens enough that it is a normal re-occuring problem.
I use the built-in timer thing that the PlayerIO examples show to use.
Whenever this problem happens, the GotMessage function on the server still works, but the gameLoop() is not working at all. Any help would be appreciated.
- Code: Select all
// This is how you setup a timer
AddTimer(delegate{
// code here will code every 100th millisecond (ten times a second)
gameLoop();
}, 31);