Y
Yvalson
Guest
so for some reason my enemies aren't avoiding obstacles.
here is the code:
Obj_Controller3 is the parent of all the obstacles in the room and is solid. but for some reason it isn't working (I don't to use grid based player following because my player can move around freely as well.)
here is the code:
Code:
if(!global.Pausing && distance_to_object(Obj_Munna) > 24){
image_angle=point_direction(x,y,Obj_Munna.x,Obj_Munna.y)
direction = image_angle
mp_potential_step_object(Obj_Munna.x, Obj_Munna.y, 3.5, Obj_Controller3)
}