Page 1 of 1
Timer based games
Posted: 21 October 2016, 01:57
by Victoria_La
Lets say I have a game where real timer should be used for all players. What what would best way to implement that?
Basically I need to
a) disable turn-based games for this game
b) tap in timer API some-how to set global timer and get alarm when expired, and not in UI code, notification must come from server
Re: Timer based games
Posted: 21 October 2016, 02:31
by marcgenesis
What is your use case? Does the timer limit something, or is it used to know who played first in a multiactive state?
Re: Timer based games
Posted: 21 October 2016, 03:06
by Victoria_La
After first player moved, rest of players gets 30 seconds to make counter-move.
It is global multiplayer state for remaining players.
Re: Timer based games
Posted: 21 October 2016, 05:45
by sourisdudesert
If this is part of the rule, you have to disable turn based.
Otherwise, you'll have to agree with the publisher to do a custom rule for turn based :/
Re: Timer based games
Posted: 21 October 2016, 19:41
by Victoria_La
Well I still don't understand HOW to do that.
Re: Timer based games
Posted: 25 October 2016, 20:05
by Rudolf
Do you know how to manage an "event" timer in php? (if not, begin by this, but it's better to look on the net... it's not simple to explain here)
by the way...
You will have problem with players with a 30 seconds based time... because there are many lags often on this site... I already faced the problem.
Re: Timer based games
Posted: 26 October 2016, 21:49
by Een
Victoria_La wrote:Well I still don't understand HOW to do that.
Hi,
This is a flag we can set for the game on the main site.
Just remind us about it before release

Re: Timer based games
Posted: 26 October 2016, 22:40
by Victoria_La
Ok Thanks. I am not sure if I will implement this game I just wanted to know what is involved and if this possible in principle.
Looks like there is no framework support to get ahold of global table times and I just have to use language (php) structures for this.
And there is some admin way to turn off turn based games which is all what I need to think about it

Re: Timer based games
Posted: 17 February 2021, 19:52
by LaszloK
Sorry for the necromancy, but is there a definitive answer to what exactly could be used in case something like this was needed? Specifically, is EvTimer supported, or should I google further?
(Out of the games currently available for development, Escape is one example where something like this would be needed, although I'm asking with something else in mind.)