How do I make AI for a top down shooter?

Get help using Construct 2

Post » Mon Feb 18, 2013 8:50 pm

[QUOTE=mystazsea]
Stay tuned ..a full featured ai will be released soon on the forums for top down shooters....[/QUOTE]

Looking forward to that!
B
72
S
25
G
9
Posts: 382
Reputation: 10,649

Post » Mon Feb 18, 2013 10:55 pm

Well I added on from what I had and added the ghost tut movement and this is what I have now:

System - Every tick:
    FOV Set position to (Zombie.X, Zombie.Y)
    FOV Set angle to Zombie.Angle degrees

System - Every Tick & Player - Is overlapping FOV (the helping sprite):
    FOV set angle toward (Player.X, Player.Y)
    Zombie set angle toward (Player.X, Player.Y)
    
Here the zombie is looking at the player and has bullet movement so he goes to the player, but my problem is that when I leave the zombies FOV then the Zombie goes off randomly and most of the time gets stuck in a wall and spazes out. Please help
B
3
Posts: 7
Reputation: 301

Post » Tue Feb 19, 2013 12:12 am

set an event so that if nothing is in the line of sight he will stand there. that will probably fix it.
B
7
S
2
Posts: 18
Reputation: 891

Post » Tue Feb 19, 2013 2:10 am

@tryingthisout or in your event that checks for the player, add an else that just has the zombie stop by stopping the bullet movement if the player is out of range?
B
49
S
11
G
10
Posts: 1,833
Reputation: 14,428

Previous

Return to How do I....?

Who is online

Users browsing this forum: blackhornet, selaus and 0 guests