#call function that sits in draw end from step
13 messages · Page 1 of 1 (latest)
ERROR in
action number 1
of Step Event0
for object obj_graph:
Variable <unknown_object>.drawGraph(100006, -2147483648) not set before reading it.
at gml_Object_obj_graph_Step_0 (line 3) - drawGraph();
############################################################################################
gml_Object_obj_graph_Step_0 (line 3)
show me where you define drawGraph()
***Draw End***
//draw
function drawGraph() {
draw_sprite(spr_point,0,nx,ny);
}```
youre calling it in step and defining it in draw end?
yes
you cannot draw in step events
I know thats the problem
you should define it in a create event
yes
yes it works now, ty