How do I Make a Turret that Moves.

Get help using Construct 2

Post » Sat Oct 22, 2016 7:29 pm

I want to have Types of AI, This AI I'm doing is Random AI, Whenever you Get in front of it or in its range it will shoot, when dead or out of range it goes back to walking and Idling. However I cannot get the AI to move whenever I have Target Enabled. Any Way to Bypass this?


Thanks! :D
B
22
S
6
Posts: 27
Reputation: 1,358

Post » Sat Oct 22, 2016 7:59 pm

Could you please provide the .capx for your project? Thank you.
"We can't solve problems by using the same kind of thinking we used when we created them."
- Albert Einstein
B
27
S
11
G
8
Posts: 528
Reputation: 7,091

Post » Sat Oct 22, 2016 8:38 pm

@datiel12 be more specific or tell as a example other game like. or paint it
B
17
S
7
G
7
Posts: 205
Reputation: 5,335

Post » Sun Oct 23, 2016 3:42 am

randomly wrote:Could you please provide the .capx for your project? Thank you.

Here, https://www.dropbox.com/s/0oz0rxtjarz0a ... .capx?dl=0
B
22
S
6
Posts: 27
Reputation: 1,358

Post » Sun Oct 23, 2016 3:54 am

CBelle wrote:@datiel12 be more specific or tell as a example other game like. or paint it

Heres a .capx https://www.dropbox.com/s/0oz0rxtjarz0a ... .capx?dl=0

Since my game is a top-down game I want to have AI in it, Think Hotline Miami 2's Random AI.

In Hotline Miami 2 the Random AI Walks around and When It sees the player proceeds to shoot. and when the player is killed or out of sight the AI either Sees the last position of the player Or Walks and Idles around.


What I want in my game is for the AI to Randomly walk around the area and when it sees the player, He will shoot and when the player dies or is out of sight I want the AI to start walking and Idling again.

So, I have a few Events setup


Image


The Bullet behavior allows the AI to move. So i have it disable when the AI detects the player while shooting. Otherwise the bullet will enable.
B
22
S
6
Posts: 27
Reputation: 1,358

Post » Sun Oct 23, 2016 5:27 pm

Nevermind! I took a look at my logic and Set the Else statement to Disable the Bullet.
B
22
S
6
Posts: 27
Reputation: 1,358


Return to How do I....?

Who is online

Users browsing this forum: Baidu [Spider], David181, evillair and 59 guests