need help to set conditions to detect every unit within certain radius or distnce of another unit?
in proximity, like radar...
Develop games in your browser. Powerful, performant & highly capable.
Spawn a circle sprite and pick everything that overlaps it.
thanks but i need some math. equation solution.
thats plan B if noone has idea how to do it by some math equation....
anyone has some math sloution?
Well strictly speaking that is using an equation, its just that you dont see it.
You can use for each, and distance(), but its not very efficient.
Pick by comparison, distance() < range