Page 1 of 1

Joining a Game Room as a player

Posted: 13 Apr 2010, 14:41
by ffourcad
Hello,

I have a problem to join a game room as a player. Since in OpenSpace we don't use the joinRoom method, but the loadMap instead (or another OpenSpace method which includes the joinRoom method), I can't find where I can set the player status of the user.

Posted: 13 Apr 2010, 16:44
by Bax
Can you better describe what you mean? Actually we don't understand why you should use a game room for OpenSpace.. what is the purpose? Also, what do you mean with "setting the player status"? player vs spectator?

Posted: 14 Apr 2010, 07:46
by ffourcad
yes, i meant player vs spectator. And I'd like to use a game room, because I would like to use OpenSpace to do something like a maze game. It seems pretty convenient for this project, but I'd like to make a difference between the NPC (who are set as spectators) and the real players (who should be set as players).

Posted: 14 Apr 2010, 16:36
by Bax
If the room is a game room, users entering the corresponding map are set as players. As it regards the NPCs, simply make them join the room manually (don't use the server-side sendAvatarToMap method) and then set their user variables (position, skin, etc) to make them appear on the map.