Hi everyone, hope you are doing well :)
I will be hosting an event with a very simple game, just a clicker game. Using Sparsha´s great firebase plugin, I can register, read and write the user, email, scores, leaderboards, etc. No problem here.
I would like to terminate the game after x time for every player at the same time.
Here is my idea: Read from database line "Users are playing" set to 1 or 0 and make the game check this every 1 -5 secs.
If that variable (that updates from the DB) is 0, let them play
If that variable (that updates from the DB) is 1, send them to the leaderboard/endgame
I can change the value in firebase, and see it reflected in my game ok, however, it´s not responding the action.b