Full Instance Sync Problem

Posted by PDGAMES
Im creating a game that every player has his card... the normal player object is called object_player and the other one is called object_player_other. When a player places his bet a card is created (with full sync) the card is closed to everyone (each player has his own card) and when a time has passed (with alarm) the card opens... The problem is that every player see the other's player card (when it is created and deleted...) but only the "true" player see his own card OPEN... other players cards remain closed (back side) but creation time and destroy time are correct... it seems that image_index doesn't sync... (I use full sync on the card object).
Is there a way to fix this?

Replies (3)

Last message on 1 Mar 2016

Size43 (Administrator) on 23 Feb 2016, 18:22:09
You can use gms_instance_set and gms_instance_get to sync additional variables besides x, y, speed & direction. Those functions work similar to gms_other_get/gms_self_set.
PDGAMES (Topicstarter) on 23 Feb 2016, 21:49:47
It still doesn't work... :/ i tried it on the alarm event (the alarm that opens the card) and i also tried step event (and checks if it's gms_instance_is_owner()) the card on other players is still closed to all except the real player (with his own card)
Size43 (Administrator) on 1 Mar 2016, 10:41:35
You'll need to call gms_instance_set if gms_instance_is_owner is true, and call something like

variable = gms_instance_get(id, "variable");

if gms_instance_owner is false. If that doesn't work, please post the code you're using.