Hey Guys, I'm very new to the Stencyl scene but I'm having fun so far.
I'm currently working on a tower defence game and I'm using the Follow Path behaviour that contains x amount of waypoint nodes for the enemies to follow.
What I am after is how I calculate the distance left before the end of the path.
I want to program towers to aim at the enemy that is the closest to reaching the end of the track as a priority.
I have thought of using x coords but that wont work if a track goes backwards and forwards in a zigzag style path.
I am hoping theres a way to calculate pixel distance between nodes or something similar. Can anyone offer some advice?
Thanks for reading