D
Dreambig
Guest
Whenever I run this code
I get
Whenever I change the 121 in S=121 to 122, it shows the picture, but it won't change the picture even if I change the values. I checked, and the values were able to be changed, just that the picture wasn't changing.
How do I fix this?
d=sprite_get_texture(sprite3,1)
draw_set_color(c_white)
for(Timesrun=0;Timesrun<121;Timesrun+=1)
{draw_primitive_begin_texture(pr_trianglefan,d)
draw_vertex_texture(PointI[S,p],LineI[S,p],imx[S,p],imy[S,p])
p+=1
draw_vertex_texture(PointI[S,p],LineI[S,p],imx[S,p],imy[S,p])
p+=1
draw_vertex_texture(PointI[S,p],LineI[S,p],imx[S,p],imy[S,p])
p+=1
draw_vertex_texture(PointI[S,p],LineI[S,p],imx[S,p],imy[S,p])
draw_primitive_end()
S+=1 p=1 if S=121{S=1 p=1 Timesrun=0 }
}
draw_set_color(c_white)
for(Timesrun=0;Timesrun<121;Timesrun+=1)
{draw_primitive_begin_texture(pr_trianglefan,d)
draw_vertex_texture(PointI[S,p],LineI[S,p],imx[S,p],imy[S,p])
p+=1
draw_vertex_texture(PointI[S,p],LineI[S,p],imx[S,p],imy[S,p])
p+=1
draw_vertex_texture(PointI[S,p],LineI[S,p],imx[S,p],imy[S,p])
p+=1
draw_vertex_texture(PointI[S,p],LineI[S,p],imx[S,p],imy[S,p])
draw_primitive_end()
S+=1 p=1 if S=121{S=1 p=1 Timesrun=0 }
}
I get
___________________________________________
############################################################################################
FATAL ERROR in
action number 1
of Draw Event
for object object3:
Fatal Error: Can not create vertex buffer of size 98304 bytes
20965 vertex buffers allocated with total size of 2012960 KB
at gml_Object_object3_DrawEvent_1 (line 12) - draw_primitive_end()
############################################################################################
############################################################################################
FATAL ERROR in
action number 1
of Draw Event
for object object3:
Fatal Error: Can not create vertex buffer of size 98304 bytes
20965 vertex buffers allocated with total size of 2012960 KB
at gml_Object_object3_DrawEvent_1 (line 12) - draw_primitive_end()
############################################################################################
Whenever I change the 121 in S=121 to 122, it shows the picture, but it won't change the picture even if I change the values. I checked, and the values were able to be changed, just that the picture wasn't changing.
How do I fix this?