How to know the users room entry order ?

0 votes
I am trying to set the positions of players in game based on the order they entered into room.

For Example : 4 players in the  room.How do they know who entered 1st, 2nd, 3rd and 4th.

So How to get order  in which the users entered into room ?Please help me.

Thanks
asked Apr 16, 2014 in App42 Cloud API-BaaS by rkrishna (22 points)

1 Answer

0 votes

You can use room properties. One way to do so could be, whenever a player joins a room, count the current no. of players in that room and set a room property with count+1 and player name.

To learn more about properties go here  

This blog can also be very helpful to you 

answered Apr 16, 2014 by Suyash Mohan (900 points)
Thanks for Replay.But how to get no of current users in that room?In RoomData we are having getMaxUsers() method only.
use getLiveRoomInfo() method. The response will have LiveRoom object which will contain getUsers() method returning the array of all the users.
Download Widgets
Welcome to ShepHertz Product line forum, where you can ask questions and receive answers from the community. You can also reach out to us on support@shephertz.com
...