[Suggestion] Pick by Shortest Path

Discussion and feedback on Construct 2

Post » Tue Aug 20, 2013 6:33 am

The title says it all.

I could really go for a feature in Path Finding that plots the shortest path to an object instance.

Similar to Pick Nearest Instance, but takes into account that the "nearest" object might be on the other side of a wall that will take many more steps to get to. So it'll calculate the "nearest" instance according to which instance has the shortest path to travel along to reach it. Because the shortest distance isn't always a straight line... :)Rhindon2013-08-20 06:50:15
I'm seeking Narnia. Who wants to come with me! Aslan is on the move!
B
141
S
23
G
8
Posts: 790
Reputation: 15,017

Post » Tue Aug 20, 2013 8:15 am

You can accomplish this by finding the path to each instance, and for each path found cycle through the nodes, adding up the distance between them to find the total distance.

Mind you, this is a bit tricky to do. But it can be done.Arima2013-08-20 08:17:13
Moderator
B
95
S
34
G
33
Posts: 3,006
Reputation: 27,874

Post » Tue Aug 20, 2013 9:12 pm

@Arima - LOL I guess so, but I'm still very much a newb. And I'm already going towards my fourth month of struggling with my enemy AI behavior.
I'm seeking Narnia. Who wants to come with me! Aslan is on the move!
B
141
S
23
G
8
Posts: 790
Reputation: 15,017


Return to Construct 2 General

Who is online

Users browsing this forum: C4rtman, spartan05 and 7 guests