lilsheep Posted May 21, 2015 Share Posted May 21, 2015 I have a multiplayer game When somebody is tabbed out and another enters the game, their MovieClip is not added to the game. How do I get past this ? One way is to constantly add the movie clip in the game loop -- or alternatively to check if it exists and if not add it. However that seems problematic. And that doesn't help with deleting clips (that delete after an elapsed time) when the character tabs out -- and the time runs out. (Deleting is not executed) Quote Link to comment Share on other sites More sharing options...
lilsheep Posted May 21, 2015 Author Share Posted May 21, 2015 I suppose that one solution is to remove every display object and re add it every game loop. This fixes the problem. But there has to be something more performant. This solution freaks me the eff out. : ( Quote Link to comment Share on other sites More sharing options...
xerver Posted May 21, 2015 Share Posted May 21, 2015 Instead of fixing the symtpom, you should figure out why this is: > When somebody is tabbed out and another enters the game, their MovieClip is not added to the game. and solve that problem. What causes it not to be added? Can you queue the message that says it should be added until the user returns then add all the queue things? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.