Pathfinding with nodes.

Get help using Construct 2

Post » Tue Apr 02, 2013 10:08 am

I'm trying to set up a map that has multiple paths depending on a setting on the creep itself.

I have 2 paths: Top and Bottom, and I want all minions with the variable TOP to seek along with the top path, and bottom the same way with the bottom path.

I've tried to have it pick the nearest instance with this

if MINION.LANE = PATH_NODE.LANE
>Pick nearest PATH_NODE minion.x minion.y
>MINION.NODE_NUMBER < PATH_NODE.NUMBER
>>MINION - Find path to PATH_NODE

if MINION is OVERLAPPING PATH_NODE
>set MINION.NODE_NUMBER to PATH_NODE.NUMBER

It seems to hijack about half my minions to go to the first node top, and the others don't do anything.

Any ideas on how to make them follow a series of nodes until their destination?
B
15
S
4
G
4
Posts: 294
Reputation: 3,225

Return to How do I....?

Who is online

Users browsing this forum: Draconinho, peturfoto and 13 guests