R
RJb
Guest
So I have this code in my global left mouse down event.
move_towards_point(mouse_x,mouse_y,Accel);
var frame = 0
var direc = point_direction(x,y,mouse_x,mouse_y)
if (direc>=270) frame=0
else frame =round(direc/180)
image_index=frame
when my object goes to the that point the images change back and forth really fast. How do I fix this to keep the image from changing? i ONLY HAVE 2 IMAGES TOTAL.
move_towards_point(mouse_x,mouse_y,Accel);
var frame = 0
var direc = point_direction(x,y,mouse_x,mouse_y)
if (direc>=270) frame=0
else frame =round(direc/180)
image_index=frame
when my object goes to the that point the images change back and forth really fast. How do I fix this to keep the image from changing? i ONLY HAVE 2 IMAGES TOTAL.