12-17-2020, 04:28 PM
(12-17-2020, 03:56 PM)Pedigree Wrote: That is the same exact error you've already shown.
The draw event occurs before the create event which means the variable won't be defined when you are calling for it, so you can't refer to the variable in that draw event. Remove all references to the "item" variable in the draw event and this error will no longer trouble you.
What even are you trying to do with a variable in the draw event? Post the whole code of your draw event here.
Okay, if you say so.
Code:
if item = 3
draw_sprite_ext(sprite_index,item,x,y,zoom,zoom,0,c_white,1)
else
draw_sprite(sprite_index,item,x,y)
draw_sprite_ext(sprite_index,0,x,y,zoom,zoom,0,c_white,1)