How do I make the enemy follw my player,wen hes nearthe enem

Get help using Construct 2

Post » Mon Dec 08, 2014 11:28 pm

Im trying to make the enemy follow my player, when he is near the enemy, in certain área of distance from the enemy. Im also trying to make the enemy stop following me after the player leaves the área near the enemy or if the player is touching the enemy. I tried using line of sight and path finding, but it doesnt work with that, and i dont know why, please help me.
B
3
Posts: 5
Reputation: 185

Post » Tue Dec 09, 2014 12:01 am

You can use Rex's Move To behavior and set it to move to charachter sprite every tick while activated. Then you can activate it while in enemys line of sight and disable when outside enemy line of sight.

viewtopic.php?t=63156&start=0
B
52
S
22
G
12
Posts: 725
Reputation: 11,716

Post » Tue Dec 09, 2014 12:39 am

The best way is to make invisible big sprite and stick it to the player.

When the enemy overlapping the Sprite ---- enemy follow the player.
Else --- enemy don't follow.
Image
B
60
S
10
G
10
Posts: 1,013
Reputation: 9,155


Return to How do I....?

Who is online

Users browsing this forum: R0J0hound and 9 guests