One Direction Path Finding?

Get help using Construct 2

Post » Mon Apr 29, 2013 9:14 pm

How do I make a one directional path in path finding :?sosensible2013-04-30 15:32:07
B
39
S
10
G
7
Posts: 514
Reputation: 9,426

Post » Mon Apr 29, 2013 9:58 pm

I'm sure that would be tricky. The path finder works on its own grid system, and only updates the system with locations of solid objects once. You would have to keep calling the update action to update the grid, which is time consuming.

If that wasn't an issue (for example, the layout is small), then (assuming a "player" object of some type is involved) one way might be to create a very thin and LONG rectangle positioned behind the player, longer than the height or width of the layout, mark it solid, call the "regenerate obstacle map" action, then "find path". I assume it would only look ahead of the player.

Another option might be to create a bunch of semi-transparent blocks filling the empty space, the set all blocks in the "wrong" direction to either solid, or with a path cost, then update the obstacle grid, then find path.

Or option 3: Write your own if possible. ;)JoyfulDreamer2013-04-29 22:00:14
Jack of all trades, and master of some.
B
29
S
9
G
7
Posts: 174
Reputation: 7,601

Post » Mon Apr 29, 2013 10:40 pm

I was thinking for a road with trafficsosensible2013-05-16 20:14:46
B
39
S
10
G
7
Posts: 514
Reputation: 9,426

Post » Thu May 16, 2013 9:59 pm

anything else
B
39
S
10
G
7
Posts: 514
Reputation: 9,426


Return to How do I....?

Who is online

Users browsing this forum: Baidu [Spider], DiabloOvermind, emoticon and 13 guests