Tower Defense Targeting Help
TreysForDays
Member Posts: 2
I cannot figure how to make my turret select the enemy that is closest to the finish while in its range. I currently have a table with each x and y coordinate and distance traveled is there any way to take all of these and select the max? Would greatly appreciate any help.
Comments
Bump
You can use a combination of magnitude(), which calculates the distance between two points and max(), which calculates the largest value of two or more expressions.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User