Hello guys I'm super new to game developing and i still try to learn and do most with ChatGPT as a helper but I'm stuck like over 8 hours and need help....
Top Down 2D Game
So the idea is:
Enemies always track the player and follow him till they are in attack range that works problem is I don't want them to push each other and if they realize there is an enemy in front of me I dodge that enemy and get another position next to the player.
Just imagine LoL melee minions surrounding a Tower or Starcraft 2 Zerglings (or any other melee unit) surrounding a building or an enemy. That's my goal but it just doesnt work either way its clunky or they push each other to get close to the position etc... idk what to do
i just post every code i use so far for my enemy if u wanna see anything else let me now
Player and Zombies are both just circles with circle collider and dynamic body type player has the player 1 tag and zombie the enemy tag so yeah idk anyone a idea?