Npcs forget about obstacles

Get help using Construct 2

Post » Sat Dec 24, 2016 1:14 am

Image
The Problem

Lines 124-126 Work great for spawning the NPC, however after the NPC spawns it ignores line 127, and will go through obstacles!
Why is that? :?:
B
15
S
5
Posts: 22
Reputation: 1,062

Post » Sat Dec 24, 2016 2:05 am

Try adding For Each guard on created to your event.
B
61
S
20
G
56
Posts: 1,077
Reputation: 35,986

Post » Sat Dec 24, 2016 2:31 am

Burvey wrote:Try adding For Each guard on created to your event.

Ive have just tried this, and it wouldn't work.
Ive tried changing the order, combining the two, and including it within the spawning event.
maybe im using the wrong expression.

I'm using

https://gyazo.com/cedba065b6fe95b37b20c7fa32919422
B
15
S
5
Posts: 22
Reputation: 1,062

Post » Sat Dec 24, 2016 3:49 am

Try removing the on created part. Also you may need to move it into a sub event under where the enemy is created so it doesn't run every tick.
B
61
S
20
G
56
Posts: 1,077
Reputation: 35,986

Post » Sat Dec 24, 2016 4:06 am

https://gyazo.com/0546bd7947b1a3df6a948699adbd3198
That didn't work either.
I also tried using the pick all instances, and On every tick, just to see if it worked. It didn't.
B
15
S
5
Posts: 22
Reputation: 1,062

Post » Sat Dec 24, 2016 4:12 am

Did you try moving the 3 obstacle actions directly below the spawn enemy action in the same event?
B
61
S
20
G
56
Posts: 1,077
Reputation: 35,986

Post » Sat Dec 24, 2016 4:18 am

https://gyazo.com/5017efbe4cdc5acc20349148a907ba0b
Didn't work.... unless I misunderstood that.
B
15
S
5
Posts: 22
Reputation: 1,062

Post » Sat Dec 24, 2016 4:28 am

Are you able to post your capx?
B
61
S
20
G
56
Posts: 1,077
Reputation: 35,986

Post » Sat Dec 24, 2016 4:39 am

B
15
S
5
Posts: 22
Reputation: 1,062

Post » Sat Dec 24, 2016 5:02 am

Sorry, I don't have the correct plugins to load your capx. Hopefully someone else can help you out.
B
61
S
20
G
56
Posts: 1,077
Reputation: 35,986

Next

Return to How do I....?

Who is online

Users browsing this forum: Blendi1223, Darknessed and 38 guests