Confused, how to make enemy a aim at each other.

0 favourites
  • 3 posts
From the Asset Store
Pixel Enemies for SHMUP consists of 45 enemy ship sprites to be used in your game.
  • I use Turret behavior, I want to aim at other Turret, but I can only aim at myself in the end.

    All the turrets are the same object. There are 10 of them in the scene, and I want them to aim at each other. In the case of not using family, how to make the Turret not aim at itself.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Don't add an object to the turret as a target. You need to acquire a target for each turret instance individually. But it will be really difficult to do without families.

    You should probably use another invisible sprite, pin it to each turret and acquire it as a target.

    Try something like this:

    For each Turret
    pick TargetSprite that is not pinned to this Turret, and nearest to this Turret
    Turret acquire TargetSprite as a target
    
  • Don't add an object to the turret as a target. You need to acquire a target for each turret instance individually. But it will be really difficult to do without families.

    You should probably use another invisible sprite, pin it to each turret and acquire it as a target.

    Try something like this:

    For each Turret
    pick TargetSprite that is not pinned to this Turret, and nearest to this Turret
    Turret acquire TargetSprite as a target
    

    thank you,

    Success! Thank you again for your guidance.

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