Send move before turn base room Timer is over

0 votes
Hello,

We created our turn base game. works perfect using appWarp service. we set a host user that can create a turn base room , theTurn time  we configured is 30 secs. However when a user plays his move and his opponenet wants to make his move he has to wait until Turn Base Timer will pass, if he makes his move before we get an error while trying to send the move.(it works only if user  waits until  AppWarp Timer will be over) .

Is there anyway to make it work before turn base room timer is over?

 

regards,

Tamir.
asked May 6, 2014 in AppWarp by tamirsagi (10 points)

1 Answer

+1 vote
Hi Tamir,

That should not be the case. When a players submits their move (via send move) as long as its their turn, the move will be accepted by the server and the turn will be advanced. The other users receive

onMoveCompleted notification which also contains the name of the user whose turn it is now.

So say if its A's turn and it has 30 seconds to complete its move. If A sends his move in say 10 seconds, then the server will update the turn to B and send a notification onMoveCompleted to everyone subscribed to the room which will contain the move data as well as the name of the next turn user.
answered May 7, 2014 by dhruvc (1,099 points)
I will check again
Works perfect, the problem was in OnMoveComplete
Thanks!
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
...