proc
ai()
if(target)
if(bounds_dist(src, target) > attack_distance)
move_towards(target)
else
stop()
if(can_hit)
can_hit = 0
hit(target)
spawn(speed)
can_hit = 1
else
target = find_target(target_range)
wander(wander_distance)
Problem description:
I've attached a gif so you can understand easier what's going. Using move_towards() in forum_accounts library seems to cause the AI to wobble on it's path I guess?
After a tweak move_to() seems to work perfect when I use that instead of move_towards()
IFRAME: https://gfycat.com/ifr/TinyCarefreeAnkolewatusi