sync problem

Posted by conanphamtuan
Can I sync play sounds ?

Replies (1)

Last message on 2 Dec 2016

Size43 (Administrator) on 2 Dec 2016, 13:47:38
Use the p2p messages:

for(var i = 0; i < gms_other_count(); i++)
{
gms_p2p_send(p2p_sound, gms_other_find(i), snd_my_sound)
}


You'll need to create a constant, p2p_sound. (You can set it to something like 3)

Then in the script you set using gms_script_set_p2p:
if argument0 == p2p_sound
{
sound_play(ds_list_find_value(argument1, 0))
}