Error with "no sprite to draw"

Posted by Chops
___________________________________________
############################################################################################
ERROR in
action number 1
of Draw Event
for object obj_OtherPlayer:

Trying to draw non-existing sprite.
at gml_Object_obj_OtherPlayer_Draw_0
############################################################################################
--------------------------------------------------------------------------------------------
stack frame is
gml_Object_obj_OtherPlayer_Draw_0 (line -1)

I'm not sure why i get this, but when i tried using GMServer this happens so the other player never shows up. if you could tell me what i'm doing wrong, that would be great

Replies (2)

Last message on 21 Oct 2018

jdev on 21 Oct 2018, 23:52:44
Hi,

You need to make sure you are giving your obj_OtherPlayer a sprite to work with, otherwise it will spit this error out when you try to use draw_self() in a Draw Event.
Size43 (Administrator) on 21 Oct 2018, 16:52:48
Does your obj_OtherPlayer object have any draw code?

If your player object does not have a sprite, you might want to disable sprite syncing using gms_optimize_variables.