My favorites | Sign in
Project Logo
Project hosting will be READ-ONLY Wednesday at 8am PST due to brief network maintenance.
                
Search
for
Updated Feb 04 (5 days ago) by o...@come2play.com
doAllSetTurn  
Handling who has the current turn (For Turn-based games)
doAllSetTurn(userId:int, milliSecondsInTurn:int)

Description

Call this function to force a player to make his turn, prevents hackers from stagnating your game.

Parameters

userId - the user ID of the player you want to make a move.

milliSecondsInTurn - the time the user has to make his turn before automatically losing.

Example

it is the player 1 turn to play in a game of TicTacToe where each move must be made after a maximum of 5 seconds

	doAllSetTurn(1, 5000);

In this example after 5 seconds the player with id 1 will be declared as the loser.


Sign in to add a comment
Hosted by Google Code