How do I have the players sprites work online.

My player uses the Draw thing, so he can have rotating arms and colored body parts, but it does not show online, it shows the hitbox sprite i made the player use, how do i fix this?

[Code]
//ega01 = black
//ega02 = white
//ega03 = d_grey
//ega04 = l_grey
//ega05 = brown
//ega06 = yellow
//ega07 = d_red
//ega08 = l_red
//ega09 = green
//ega0A = lime
//ega0B = blue
//ega0C = sky_blue
//ega0D = purple
//ega0E = magenta
//ega0F = cyan
//ega11 = l_cyan

draw_sprite_ext(arm, -1, x + 3 * flip, y + 8, 1, flip, aim_dir, hclr, 256);
if weap = 1 {
if sht = 1 {
draw_sprite_ext(PSTSHT, -1, x + 3 * flip, y + 8, 1, flip, aim_dir, c_white, 256);
}
draw_sprite_ext(Pistol, -1, x + 3 * flip, y + 8, 1, flip, aim_dir, c_white, 256);
}
if weap = 2 {
if sht = 1 {
draw_sprite_ext(LZRSHT, -1, x + 3 * flip, y + 8, 1, flip, aim_dir, c_white, 256);
}
draw_sprite_ext(Lazer, -1, x + 3 * flip, y + 8, 1, flip, aim_dir, c_white, 256);
}
draw_sprite_ext(head, -1, x, y + 1, flip, 1, 0, hclr, 256);
draw_sprite_ext(hair, -1, x, y + 1, flip, 1, 0, haclr, 256);
draw_sprite_ext(eyes, -1, x, y + 1, flip, 1, 0, eclr, 256);
draw_sprite_ext(torso, -1, x, y + 6, flip, 1, 0, cclr, 256);
if lgs = 0 {
draw_sprite_ext(legs, lgs, x, y + 15, flip, 1, 0, pclr, 256);
draw_sprite_ext(feet, lgs, x, y + 15, flip, 1, 0, sclr, 256);
}
if lgs = 1 {
draw_sprite_ext(legs02, lgs, x, y + 15, flip, 1, 0, pclr, 256);
draw_sprite_ext(feet02, lgs, x, y + 15, flip, 1, 0, sclr, 256);
}
if lgs = 2 {
draw_sprite_ext(legs03, lgs, x, y + 15, flip, 1, 0, pclr, 256);
draw_sprite_ext(feet03, lgs, x, y + 15, flip, 1, 0, sclr, 256);
}
draw_sprite_ext(arm, -1, x - 3 * flip, y + 8, 1, flip, aim_dir, hclr, 256);
if weap = 1 {
if sht = 1 {
draw_sprite_ext(PSTSHT, -1, x - 3 * flip, y + 8, 1, flip, aim_dir, c_white, 256);
}
draw_sprite_ext(Pistol, -1, x - 3 * flip, y + 8, 1, flip, aim_dir, c_white, 256);
}
if weap = 2 {
if sht = 1 {
draw_sprite_ext(LZRSHT, -1, x - 3 * flip, y + 8, 1, flip, aim_dir, c_white, 256);
}
draw_sprite_ext(Lazer, -1, x - 3 * flip, y + 8, 1, flip, aim_dir, c_white, 256);

Replies (2)

Last message on 29 Sep 2019

Size43 (Administrator) on 29 Sep 2019, 13:54:59
Related:https://gamemakerserver.com/en/forum/board/1/view/689/
As suggested by rosaskenneth, you'll need to sync the additional variables you're using (flip, aim_dir, ..clr) by setting them in the player object with gms_self_set, then reading them in the other player object using gms_other_get.

Also related is this tutorial: Syncing player variables.
rosaskenneth on 26 Sep 2019, 14:55:17
sync your player color or sprite by using gms_self_set() and get the data ang place to the other player using gms_other_get() function