if(bounds_dist(src, target) > attack_distance)
can_hit = 0
can_hit = 1
target = find_target(target_range)
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()