When player has been spotted,make enemy go to player

Get help using Construct 2

Post » Sun Jan 29, 2017 2:49 am

How do I make the enemy go to player when spotted? Like, the enemy is doing nothing until the player shows up.Once the player has been spotted, the enemy goes to the player and try to kill him. How do I do that?
B
34
S
14
G
3
Posts: 138
Reputation: 4,353

Post » Sun Jan 29, 2017 2:52 am

Use line of sight and when within a distance you want the AI to attack, make it stop moving and have bullet objects move towards players last postion.
B
15
S
8
G
2
Posts: 68
Reputation: 2,465

Post » Sun Jan 29, 2017 5:44 am

Can you be more specific? I'm very confused
B
34
S
14
G
3
Posts: 138
Reputation: 4,353

Post » Sun Jan 29, 2017 2:13 pm

Is this going to work for what you said?
B
34
S
14
G
3
Posts: 138
Reputation: 4,353

Post » Sun Jan 29, 2017 5:05 pm

I've just made an example, which should explain what you wanted:

https://db.tt/Lx9JCXoGV7
B
15
S
8
G
2
Posts: 68
Reputation: 2,465

Post » Mon Jan 30, 2017 7:21 am

Thanx man I needed this
B
34
S
14
G
3
Posts: 138
Reputation: 4,353

Post » Mon Sep 04, 2017 6:13 pm

Good answer.
B
9
S
1
Posts: 51
Reputation: 602

Post » Tue Sep 05, 2017 1:30 am

Indeed
B
34
S
14
G
3
Posts: 138
Reputation: 4,353


Return to How do I....?

Who is online

Users browsing this forum: Yahoo [Bot] and 17 guests