Skip to main content
2 of 4
added 16 characters in body

RTS AI Behavior Base on Flow Fields PathFind

I try to make a simple rts game (only the battle system which make units fight each other) and I use flowfiled to make the unit move.I don't know how to make the AI behavior when I finish the move, There ia a game func example , I have a range unit,his behavior is keeping distance with enemy( or rotate with target like a circle path) and attack enemy, but he just follow the flow filed to move close to the enemy, I don't know how to make it flee from enemy.

There is a way is recreate the flowfileds to the flee pos for the unit, but there are many range units, and their enemy is same , I don't know is that right to create many flowfileds for the units which has the same target. I can't find a solution for this condition,I want to the ai could be more free not only follow the flowfileds.