0 Favourites

How do I make Avoid AI

  • Im having abit of problem with my game..

    I have 6 turrets positioned like this:

    *=turrets

    • *---*----*---

    l I

    l I

    l I

    • *---*----*---

    inside the boxed area there are 3 AI enemies and the player..

    every 3 seconds 3 random turrets fire 1 projectile each at random angles..

    the goal:

    I need the enemies to avoid the projectiles...

    the problem

    I did try using pathfind and waypoints sprites that randomly change whenever they are triggered..

    but the Ai sometimes ignores the obsticales (=projectiles) and run through them

    so far I managed to get the Ai to be smart enough to stay alive for about 11 seconds..

    Im guessing the pathfind is too slow when using dynamic obsticales?

    any ideas how to solve this?

    any help would be great, been trying to work around it for days...

  • Construct 3

    Buy Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Buy Now Construct 3 users don't see these ads
Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)
Similar Topics Posts Views Last Post
Unread hot topic
167 14,492
DMT2005's avatar
DMT2005
Unread sticky
1 Favourites
C2 Games made with CocoonIO
136 89,822
minhcuong's avatar
minhcuong
Unread hot topic
99 10,137
karshinkoff's avatar
karshinkoff