Can I get the time left of a player

Game development with Board Game Arena Studio
Post Reply
User avatar
YoannLevet
Posts: 105
Joined: 21 April 2012, 23:07

Can I get the time left of a player

Post by YoannLevet »

Is it possible to get the time left of a player via javascript? Especialy in real time mode?

I would like that in my game Gamme Logic, a player who runs out of time abandons automatically the current puzzle rather than being expelled.

Yoann
User avatar
Victoria_La
Posts: 665
Joined: 28 December 2015, 20:55

Re: Can I get the time left of a player

Post by Victoria_La »

Javascript cannot make this decision even there was such API, as this can be easily manipulated. This has to be done on the server
User avatar
YoannLevet
Posts: 105
Joined: 21 April 2012, 23:07

Re: Can I get the time left of a player

Post by YoannLevet »

Thank you!

I succeed read the time by calling :
dojo.byId('timeToThink_' + this.player_id)

Yoann
Post Reply

Return to “Developers”