Player-Sync Variables problem

Posted by bruc
I have a problem: I synchronize the player variables with a script called "sync_player" that I execute in the Step Event of the obj_player object, but when I test the game the player variables are not correctly synchronized (The variable "name" gets "", the variables "atk", "def" and "dir" gets 0 and player x and y are not synchronized sometimes). How I can fix this?

The script "sync_player":
//Update variables


The draw event code of "obj_other_player":

Replies (3)

Last message on 24 Apr 2017

Zeth on 19 Apr 2017, 00:42:18
I've fixed this strangely. I added Begin Step event to "obj_gms" and in the code I rewrote the gms_settings function (Although I have already wrote it in the Create event of that same object).
Size43 (Administrator) on 24 Apr 2017, 11:42:48
Name is already automatically syncronised by the extension, overriding that might be causing some issues.
Zeth on 19 Apr 2017, 00:43:31
PD. I'm bruc, but that's my test-account, lol.