The private game system works outside your flash file. I am quite sure you are not able to catch it.
The only solution (so fare) I can think of is making yet another checkbox and just close the game as soon as it start (There is a method for that in the API)
A better implementation would be to swap the player into spectator mode while he is in the shop
/Chris
GameSetup.Boolean Private game
Chris said
5 months ago | Post #2
SmokeDT said
5 months ago | Post #3 | in reply to #2Hi,
thanks for your answer.
Yes, adding a new check box would be a good solution. But I don't know how to set the game to private, so it won't show up on the lobby game list.
Is the user going to be able to save data if the game is closed?
thanks for your answer.
Yes, adding a new check box would be a good solution. But I don't know how to set the game to private, so it won't show up on the lobby game list.
Is the user going to be able to save data if the game is closed?
Chris said
5 months ago | Post #4The user cannot save data if the connection is closed. But you can use this to prevent more users joining the game in shop mode.
SmokeDT said
5 months ago | Post #5 | in reply to #4Thanks again Chris!
Now it works like a charm!
cheers
Now it works like a charm!
cheers
Reply to thread
Sign up now to reply to threads
SmokeDT said
5 months ago | Post #1I would like to ask if there's any way to change the parameters of the predefined GameSetup Boolean called 'Private game'?
I want to change the name to something like 'shopping' and catch the Boolean value and if it's true then the shop pops up (in private game mode).
How can I change and catch GameSetup 'Private game' Boolean values?