N
nicei7
Guest
How to use sprite_add?
I have
i7=sprite_add(working_directory+"\6.gif",1,0,0,0,0)
sprite_index=i7
draw_sprite(sprite_index,-1,x,y)
I have error message"
Trying to draw non-existing sprite.
at gml_Object_ob1_DrawEvent_1 (line 3) - draw_sprite(sprite_index,-1,x,y)"
Working_directory is not where is my gmx file and can't do this.
Where use
i7=sprite_add("C:\Project2.gmx\6.gif",1,0,0,0,0)
sprite_index=i7
draw_sprite(sprite_index,-1,x,y)
again have same problem.
What to use in sprite_add(" ",1,0,0,0,0) to get a sprite?
I have
i7=sprite_add(working_directory+"\6.gif",1,0,0,0,0)
sprite_index=i7
draw_sprite(sprite_index,-1,x,y)
I have error message"
Trying to draw non-existing sprite.
at gml_Object_ob1_DrawEvent_1 (line 3) - draw_sprite(sprite_index,-1,x,y)"
Working_directory is not where is my gmx file and can't do this.
Where use
i7=sprite_add("C:\Project2.gmx\6.gif",1,0,0,0,0)
sprite_index=i7
draw_sprite(sprite_index,-1,x,y)
again have same problem.
What to use in sprite_add(" ",1,0,0,0,0) to get a sprite?