New answers tagged

0 votes

How to Prevent Enemy Overlap

If you are ok with more work on sprites you could simply use different sprites for the enemies. You could have enemies composted of randomized different parts. This is probably overkill just for this ...
Piro's user avatar
  • 157
0 votes

Why are the transform game objects moving away from the snail when they are swapping their direction?

It looks like you meant to use localPosition (the offset of the child object relative to its parent) rather than position (the ...
DMGregory's user avatar
  • 130k
0 votes
Accepted

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

Instead of a flow field (storing direction to travel at each point), consider using a distance field (storing the distance to the closest enemy at each point). From a distance field, you can quickly ...
DMGregory's user avatar
  • 130k
0 votes

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

A simple solution to this would be to have two flow fields: An "Attack" flow field. A "Retreat" flow field. If the ranged unit is too far away it uses the attack flow field to ...
DavidT's user avatar
  • 111

Top 50 recent answers are included