|
Hi; I'm developing an online board game. In the game there is a dice button that when a player clicks it the s/he throws dice. Now I want to implement a function so it gives priority to the players so each player each time can clicks this button once. And s/he should wait until her turn comes again. Any ideas how to do this? Any ideas will be appreciated. thanks
(comments are locked)
|
|
I'd use something like a counter, you add one to the counter everytime the player clicks the button, and when the counter reaches it's max number, lets say 5, it subtracts 5 and starts the cycle all over again. Here's an example: alright I hope this helps! Thanks for your help. :)
Jan 15 '12 at 05:10 PM
sanamdehghan
There is another problem now. This works fine with the server, but it looks like that the client doesn't get the updates counter, so the never could throw dice, and server can throw dice just once. Do you have any ideas how to fix it?
Jan 15 '12 at 06:09 PM
sanamdehghan
(comments are locked)
|
