hello,
need help to set conditions to detect every unit within certain radius or distnce of another unit?
in proximity, like radar...
any tips?
tnx!
https://www.scirra.com/manual/163/line-of-sight
Spawn a circle sprite and pick everything that overlaps it.
newt
thanks but i need some math. equation solution.
spongehammer
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.
Develop games in your browser. Powerful, performant & highly capable.
You can use for each, and distance(), but its not very efficient.
Pick by comparison, distance() < range