[REQUEST] Pathfinding Path Distance

Discussion and feedback on Construct 2

Post » Wed Nov 13, 2013 9:59 am

I'm currently running into the issue where I have to calculate distances along a path (and not direct distance). This prevents me from using the distance() function, and instead use Pathfinding's find path.

Is there any way we can get an expression for path distance in pathfinding?

@TELLES0808, @Ashley
Project Lead of Zems Online Card Game

Producer at Impulse Limited
B
18
S
6
G
3
Posts: 677
Reputation: 5,234

Post » Wed Nov 13, 2013 12:16 pm

You could do this in events by looping through each waypoint position and adding the distance to the next waypoint position.
Scirra Founder
B
395
S
232
G
88
Posts: 24,371
Reputation: 193,772

Post » Wed Nov 13, 2013 6:06 pm

@Ashley, he already did it (Link to the post)

But it could be nice, if not hard to implement, to have this feature as a user friendly argument.

Thank you!
Image
B
107
S
24
G
18
Posts: 1,361
Reputation: 22,770

Post » Wed Nov 13, 2013 9:39 pm

I agree with @TELLES0808 here, it would be nice to have just as a user-friendly kind of thing.
Project Lead of Zems Online Card Game

Producer at Impulse Limited
B
18
S
6
G
3
Posts: 677
Reputation: 5,234

Post » Tue Nov 19, 2013 9:38 am

i`am agree too
ImageImage
B
80
S
26
G
7
Posts: 191
Reputation: 10,420


Return to Construct 2 General

Who is online

Users browsing this forum: goodboy69, The Mnk and 21 guests