How to start a game when all players are in
Hi guys,
sorry for my english, i'm italian.
Here is the problem:
In my game all the players choose a character and then they're moved in a "waiting room".
I would like to start the game when 4 player are in.
But if i use gms_other_count or gms_session_player_count or gms_info_isloggedin or instance_number, the game starts while the fourth player is in the "choose character room".
:(
Replies (1)
Last message on 24 Apr 2019
Size43
(Administrator)
on
24 Apr 2019, 11:47:58
You'll have to write something to check whether the players are in the right room before starting the game.
I'm thinking something like this:
///scr_everyone_ready()
for(var i = 0; i < gms_other_count(); i++)
{
if gms_other_get(gms_other_find(i), "room") != rm_whatever_your_ready_room_is
{
return false;
}
}
return true;