If player was once Host can join but can't initialize game.

0 votes
So I've been working off the Templates from Color Move and the Tic-Tac-Toe tutorials.  I'm using Corona Sdk.

The problem I run into if Player1 hosts and game and then disconnects.
Player2 hosts a game.  Player1 Joins the game.
Both players are connected and in the same room but Player1's gameScene never enters.

It works fine unless a player first tries to host and game then joins a game.
Any Ideas? Thanks
related to an answer for: Obtaining Room ID
asked Mar 3, 2014 in App42 Cloud API-BaaS by floppyfinapp (21 points)

1 Answer

0 votes
 
Best answer
Alright so apart from alot of the little things arewrong with the Tic Tac Toe Sample and not difficult to fix but here's one of the little things that had be stumped for hours.

For the ConnectScene.lua file you need to add

function scene:enterScene( event )
isNewRoomCreated = false --add this to the start of the function.
end

and it needs to be added under the function of the connectButton widget
if the label is back then
isNewRoomCreated = false
end
answered Mar 3, 2014 by floppyfinapp (21 points)
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
...