image_index not updating?

Posted by tentmaker
I just started using GameMaker Server for my game. I have NEVER been more impressed! My multiplayer feature was up and running in 5 minutes!

Unfortunately the image_index is not updating on the obj_other_player object. An suggestions?

Replies (4)

Last message on 7 Sep 2015

Size43 (Administrator) on 11 Jul 2015, 15:33:44
Thanks! You can use gms_optimize_variables to enable or disable image_index and sprite_index synchronization.
Chibi on 7 Sep 2015, 14:40:41
Can You Help Me ? plz
I'm Making A Bomberman Online game, but the image_index Don't update.
I've Used The gms_optimize_variables function but i have the following error:

action number 2
of Key Release Event for <Left> Key
for object obj_player:

Error in code at line 1:
at position 24: Unknown variable sync_sprite

I Love Gms Features,I Want To Use It In My Game, Can You Please Help Me ?
Size43 (Administrator) on 7 Sep 2015, 17:21:29
You need to specify true or false. sync_sprite and sync_imageindex aren't constants. Your code needs to look like this:
gms_optimize_variables(true, true)
Chibi on 7 Sep 2015, 19:01:03
Oh Thanks :)