Doubt regarding Turn Based games

0 votes


I am using Cocos2d-x for Turn based game.

Create room with createTurnRoom()

Now that room has 5 players, one of them is owner.

what if Owner of that room left, what will happen?

Is someone else will be the owner?

asked Dec 19, 2015 in AppWarp by smitpatel88 (33 points)
recategorized Jan 7, 2016 by shepAdmin

1 Answer

+1 vote
Best answer
Hello Smit,

Once room is created and owner is set then it will not be changed. Also, if owner leaves the room there will not be any problem with the game runing in the room from the owner prospective.

Let me know if you have any further queries.

answered Dec 20, 2015 by rajeev.etc (1,660 points)
selected Dec 30, 2015 by smitpatel88
Thanks for reply.
So if owner of that room goes offline, that will not reflect into game-play, right?
and How one of the user can send data to all other players(NO CHAT) if its not his turn?
Also is there any sample and API guide for Turn based (Cocos2d-x)?
Yes, you are right. If the user who created the room goes offline it will not affect the game-play.
You can use sendUpdate( api to send data to all other players in the room.
Also, you can have a look at this sample( that demonstrate the turn-based apis of AppWarp in cocos2dx. Currently it runs on iOS.  
Let me know if you face any problem.
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