I got a problem, and i dont know how to fix it. I got this error code :
___ ############################################################################################ ERROR in action number 1 of Step Event1 for object oSGun: Unable to find any instance for object index '9' name 'oPlayer' at gml_Object_oSGun_Step_1 (line 2) - x = oPlayer.x; ############################################################################################ gml_Object_oSGun_Step_1 (line 2)
I have programmed a weapon. Then I programmed a boss and if you defeat him, you get a stronger weapon. If you collect it and then die with the weapon in your hand, the game hangs up. But the funny thing is, with the other one it works. (Of course with the help of a video)
I would be very happe if someone can help me.
___ ############################################################################################ ERROR in action number 1 of Step Event1 for object oSGun: Unable to find any instance for object index '9' name 'oPlayer' at gml_Object_oSGun_Step_1 (line 2) - x = oPlayer.x; ############################################################################################ gml_Object_oSGun_Step_1 (line 2)
I have programmed a weapon. Then I programmed a boss and if you defeat him, you get a stronger weapon. If you collect it and then die with the weapon in your hand, the game hangs up. But the funny thing is, with the other one it works. (Of course with the help of a video)
I would be very happe if someone can help me.