Safe zone from enemies.

Get help using Construct 2

Post » Sun Jun 24, 2012 7:40 pm

Hi guys,

the problem is the following:

My main character moves around the map, and when enemies are closer to him, they chase him, however I want to have a sort of "safe zone", in my case, a river in my map.

Is there anyway I could to to prevent them from coming into that zone, so they stop just in front of it?

It would be like a solid, which is only solid for some objects, so they collide, and can't move through it.

I've tried to create a sprite, and when an enemy collides with this sprite, they stop following me, but then, when I'm out of my safe zone, they won't chase me any more.
B
6
Posts: 54
Reputation: 808

Post » Sun Jun 24, 2012 7:45 pm

Okay, nevermind, I already solved it.

I have a player variable, which tells me if I'm on earth or in water.
I set the enemies to chase me just when I'm on earth.
B
6
Posts: 54
Reputation: 808


Return to How do I....?

Who is online

Users browsing this forum: 99Instances2Go, Google [Bot] and 20 guests