Flixel Forums

development => help => Topic started by: leon322 on Wed, Sep 16, 2015

Title: How to get target for a tower defense, finding nearest enemy by distance.
Post by: leon322 on Wed, Sep 16, 2015
Hello friends, i am trying to make a tower get the nearest enemy from a FlxGroup, the tower itself is in a towergroup.

Is there a way to get a performance-oriented solution?
Title: Re: How to get target for a tower defense, finding nearest enemy by distance.
Post by: PRIZZA on Fri, May 13, 2016
Check out this topic: http://forums.flixel.org/index.php?topic=6244.0 (http://forums.flixel.org/index.php?topic=6244.0)