Pathfinding block removal

Get help using Construct 2

Post » Thu Nov 28, 2013 4:51 am

Hello,

i want to ask

how do i remove the block pathfinding path

for an example we make a Turret defense game
we make the block/wall at first load

then when in game
when we click the wall, the wall will be remove

but i'm having trouble, i use "wall" > Destroy
yes the wall is destroyed
but the enemy keep walking trough the old path finding
not the new that i remove the wall

anyone know?

thanks
B
11
S
4
G
1
Posts: 15
Reputation: 1,332

Post » Thu Nov 28, 2013 5:06 am

call regenerate obstacle?
B
17
S
8
G
4
Posts: 93
Reputation: 3,190

Post » Thu Nov 28, 2013 5:17 am

in the enemy behavior or in the root?

thanks
B
11
S
4
G
1
Posts: 15
Reputation: 1,332

Post » Thu Nov 28, 2013 6:08 am

Hi,

yes it succeed

but now the problem is the first enemy that spawn
is not affected by the "refresh gene obs"

any idea how to refresh all the new enemy to move with new refresh obs?

since now only the new enemy that affected

thanks
B
11
S
4
G
1
Posts: 15
Reputation: 1,332

Post » Thu Nov 28, 2013 9:25 am

after regenerate obstacle, find path again?
B
17
S
8
G
4
Posts: 93
Reputation: 3,190

Post » Sun Dec 01, 2013 3:37 pm

let me try sound good idea
B
11
S
4
G
1
Posts: 15
Reputation: 1,332


Return to How do I....?

Who is online

Users browsing this forum: brunopalermo, PROxMTswatTR and 12 guests