hi guys,
So i have made a few pixel based bots but can never seem to get the bot to hit mobs the way i would like it to.
The current method i am using involves checking if mobs are in the rectangle where i can hit without moving and if not then scan for nearest mob. However, it always seems to go to the left, so if there is a large group of mobs it would run out of the group and attack 1 mob on the left.
Has anyone got a better algorithm for identifying which mob to attack.