Multiple turrets fire at the same targets instead of ones closer?

0 favourites
  • 3 posts
From the Asset Store
10 turrets rendered in 3D with top down and menu views. Three upgrade levels per tower.
  • So for my game, I've got friendly and enemy soldiers. I'm intending for them to shoot at one another then just slowly walk about when not firing.

    I've turned them into turrets to allow them to shoot, but from the impression I got, each separate sprite is meant to be it's own thing? But for some reason, all the turrets (If they're in range of the target) are shooting at the same target.

    This is the blocks I'm using for them (The random rotate is just to show they're done shooting for now). From my understanding, even though they're separate sprites, they're all being set to target the same thing. I'm just wondering if there is a way to change that so that they can target different things instead of all going for the same one.

    As shown in my test map, they all target the bottom right target then turn in a clockwise direction, shooting each one in order.

  • Forgot to add, I previously tried to get them to shoot at a "family" of enemy targets, but that seems to be bugged or just annoyingly inconsistent as seen from other posts so I scrapped that for now until I can find a way to get it working.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Event #3 on your screenshot doesn't pick the correct ESoldier instance.

    Check out this demo:

    howtoconstructdemos.com/how-to-limit-the-angle-of-view-for-turret-behavior

    You can ignore the "limited angle" part, just set the LOS to 360 degrees.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)