- Home /
How to implement a turn-based mobile game that allows the game to be closed until other player takes their turn?
I've watched some tutorials on making a multiplayer game, more specifically, a turn-based multiplayer game. I've learned a lot from them, however, all of the ones that I've watched are all dependent on both connecting and staying engaged in the game. What I'd like to do is create a game where players can close the game out while it's not their turn (eg... Words with Friends, Draw Something, Friendo, etc...). Is it possible to do this style of game using Unity Networking alone, or would I need to run the game on a dedicated server? Any advice or links to resources would be greatly appreciated!
Can you tell me the tutorials you watched for making the turn based multiplayer game?
Answer by OneCept-Games · Jan 02, 2018 at 07:52 PM
Unity Networking is for real time multiplayer data exchange - and is really good for this kind of game. You should save your data to exchange on a server using PHP scripts or like, or a service like Photon.
Thanks for the reply, I'll check out Photon. Do you know if any tutorials or examples for using PHP to accomplish this?
You can start by setting up a local server (like Apache) and a localhost, or you could subscribe to a Web Hotel that supports ie. $$anonymous$$ySQL. Then when you have this working you can start playing around with a PHP script like:
Your answer
Follow this Question
Related Questions
Unity networking tutorial? 6 Answers
What is the CCU of the default Unity Networking? 1 Answer
Help with server creation and handling. 0 Answers
Seperate server - client 2 Answers
Networking Player Nametag 1 Answer