Pathfinding list

Get help using Construct 2

Post » Mon Dec 02, 2013 4:22 am

Hello,

anyone know how to make a pathfinding list

so for example

1st target = enemy1
then if enemy 1 is dead/destroy

go to next list
etc...

i try to use onfailed pathfinding, but loop too many recursive = hang

thanks
B
12
S
4
G
1
Posts: 15
Reputation: 1,357

Post » Mon Dec 02, 2013 7:57 am

It will arrive at the location it had found, wether or not the enemy is still there ...

So you need an "on arrived"

do something

Then, do a new pathfind assigment followed up by move along path.
Who dares wins
B
57
S
17
G
21
Posts: 1,878
Reputation: 19,572

Post » Mon Dec 02, 2013 9:33 am

List Or PathfindingArray ? --> Insert object: array enemys ->
Add Values











csf2013-12-02 09:42:05
B
10
S
2
G
3
Posts: 25
Reputation: 845

Post » Wed Dec 04, 2013 3:36 am

if we want to make on path find failed validation
we need to use variable ?

for example
if not found the path to the enemy 1 then ... find base
if not found the path to the base then ...

how to make that in c2 ?

on path failed : ..

or 2x path failed?
B
12
S
4
G
1
Posts: 15
Reputation: 1,357


Return to How do I....?

Who is online

Users browsing this forum: The Mnk and 5 guests