How to Create dyanamic Multiplayer Game Room

Post here your questions about the Flash / Flex / Air API for SFS2X

Moderators: Lapo, Bax

Post Reply
bambam
Posts: 4
Joined: 08 Jul 2011, 12:18

How to Create dyanamic Multiplayer Game Room

Post by bambam »

Hi,

I have do not use any UI Tag, like as sfb:Connector, sfb:ChatBox and sfb:RoomList. For Login purpose use LoginRequest class and pass the user name . After login need create one Default Room then Game room. Presently i have pass the Default room no ,group name using RoomList class. Then create one game room Using RoomSettings class,Use groupId, extension properties. Then send request using CreateRoomRequest class method. My code is

settingRoom = new RoomSettings(GAME_ROOM_NAME);
settingRoom.groupId = GROUP_ID;
settingRoom.maxUsers = MAX_USERS;
settingRoom.extension = new RoomExtension(EXTENSION_ID, EXTENSIONS_CLASS)
var request:CreateRoomRequest = new CreateRoomRequest(settingRoom, true, sfs.lastJoinedRoom);
sfs.send(request);

Then on ROOM_JOIN event i have found isGame properties is false.
So my question is why show isGame is false ? Also how to enter another player in game Room and play the game (whiteout any UI intersection Play button mention in sfb:RoomList class.)?

Please give me any solution
Thanks
Bambam
User avatar
Bax
Site Admin
Posts: 4626
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Post by Bax »

You have to set the isGame flag in the RoomSettings instance.
To make another user join the Room, you have to use the JoinRoomRequest class.
Paolo Bax
The SmartFoxServer Team
Post Reply