[SOLVED] HOW CAN I CHANGE THE "IS GAME" PROPERTY OF THE ROOM?

Post here your questions about SFS2X. Here we discuss all server-side matters. For client API questions see the dedicated forums.

Moderators: Lapo, Bax

User avatar
TryMyGames
Posts: 59
Joined: 19 Dec 2016, 22:20
Location: Moldova, Chisinau
Contact:

[SOLVED] HOW CAN I CHANGE THE "IS GAME" PROPERTY OF THE ROOM?

Postby TryMyGames » 07 Mar 2017, 09:42

Hi,
I am creating rooms from server side, and I tried 2 different ways to set the isGame room property to true, and both ways fails.

1. I tried to do this through CreateMMORoomSettings.
2. I tried to do this from init method of RoomExtension class using the getParentRoom().setGame(true) method.

Thanks ;)
Last edited by TryMyGames on 07 Mar 2017, 12:03, edited 1 time in total.
User avatar
Lapo
Site Admin
Posts: 23026
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: HOW CAN I CHANGE THE "IS GAME" PROPERTY OF THE ROOM?

Postby Lapo » 07 Mar 2017, 11:48

MMORooms don't support an "isGame" flag. They are MMORooms :)
If you need a custom flag on the Room you can add a Room Variable to it.
Lapo
--
gotoAndPlay()
...addicted to flash games
User avatar
TryMyGames
Posts: 59
Joined: 19 Dec 2016, 22:20
Location: Moldova, Chisinau
Contact:

Re: HOW CAN I CHANGE THE "IS GAME" PROPERTY OF THE ROOM?

Postby TryMyGames » 07 Mar 2017, 12:02

I don't need this :D, just asking)) thanks!

Return to “SFS2X Questions”

Who is online

Users browsing this forum: No registered users and 104 guests