GameSetup.Boolean Private game

SmokeDTSmokeDT said

5 months ago | Post #1
Hi,

I 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?

ChrisChris said

5 months ago | Post #2
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

SmokeDTSmokeDT said

5 months ago | Post #3 | in reply to #2
Hi,

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?

ChrisChris said

5 months ago | Post #4
The user cannot save data if the connection is closed. But you can use this to prevent more users joining the game in shop mode.

SmokeDTSmokeDT said

5 months ago | Post #5 | in reply to #4
Thanks again Chris!
Now it works like a charm!

cheers

Reply to thread

Sign up now to reply to threads

Nonoba

nonoba.com is an independent gaming site where you can play both single- and multiplayer games for free.

Developer Tools

If you're a flash game developer, we've got some awesome tools to help you make even better games.

Great Games

Why not try some of the very best online flash games we've got, completely free?

Copyright ©2007-2010 Nonoba™ - All rights reserved.31,2002ms on NONOBA-WEB1