Page 1 of 1

Can I get the time left of a player

Posted: 08 March 2025, 08:23
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

Re: Can I get the time left of a player

Posted: 12 March 2025, 02:13
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

Re: Can I get the time left of a player

Posted: 14 March 2025, 17:54
by YoannLevet
Thank you!

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

Yoann