Skip to main content
Grammar
Source Link
DMGregory
  • 136.3k
  • 22
  • 247
  • 373

AI Behavior Base on Flow Fields PathFind How to make ranged RTS units move to their firing range from an opponent using flow fields?

I tryam trying to make a simple rts typereal-time strategy game (only the battle system which makeof units fightfighting each other ,noother; no building  , no economiceconomy,only fight only battles and endvictory) and. I use flowfiledam using flow fields to make the unitunits move.I

I don't know how to make the AI behaviortake the right actions when I finish the move, There iacompleting a game funcmove.

For example  , I have a rangeranged unit,his its behavior is keepingshould move to its firing distance withfrom the enemy and stop ( or rotate with target likeor orbit/strafe in a circle patharound the enemy) and attack the enemy. But in my current code, but hethe ranged unit just followfollows the flow filedfield to move close to the enemy,.

I don't know how to make it flee from the enemy until it gets to its attack range.

There is a way is recreate the flowfiledsflow fields to the flee pos fordirect the unit to its flee positions from an enemy, but there are many rangeranged units, and their enemy is same ,. I don't know is thatif it's right to create many flowfiledsflow fields for the units which hashave the same target. 

I can't find a solution for this condition,I I want my AI to the ai could bebehave more freefreely and not only follow the flowfiledsflow fields.

AI Behavior Base on Flow Fields PathFind

I try to make a simple rts type game (only the battle system which make units fight each other ,no building  , no economic,only fight and end) 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.

How to make ranged RTS units move to their firing range from an opponent using flow fields?

I am trying to make a simple real-time strategy game (only the battle system of units fighting each other; no building, no economy, only battles and victory). I am using flow fields to make the units move.

I don't know how to make the AI take the right actions when I completing a move.

For example, I have a ranged unit, its behavior should move to its firing distance from the enemy and stop (or orbit/strafe in a circle around the enemy) and attack the enemy. But in my current code, the ranged unit just follows the flow field to move close to the enemy.

I don't know how to make it flee from the enemy until it gets to its attack range.

There is a way is recreate the flow fields to direct the unit to its flee positions from an enemy, but there are many ranged units, and their enemy is same. I don't know if it's right to create many flow fields for the units which have the same target. 

I can't find a solution for this condition, I want my AI to behave more freely and not only follow the flow fields.

added 51 characters in body; edited title
Source Link

RTS AI Behavior Base on Flow Fields PathFind

I try to make a simple rts type game (only the battle system which make units fight each other ,no building , no economic,only fight and end) 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.

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.

AI Behavior Base on Flow Fields PathFind

I try to make a simple rts type game (only the battle system which make units fight each other ,no building , no economic,only fight and end) 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.

added 16 characters in body
Source Link

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.

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 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.

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.

Source Link
Loading