How do I kill them all?

0 favourites
  • 7 posts
From the Asset Store
Game with complete Source-Code (Construct 3 / .c3p) + HTML5 Exported
  • Hello

    I have several targets on the map that the hero will kill one at a time, but if the player kills one of the enemies, they all die

    what am I doing wrong: P?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Your "Every 1 second" event subtracts damage from all enemy instances. If you want to only damage one enemy, you need to pick this instance using some condition - for example, nearest to the player, overlapping the player, random instance etc.

  • There is no option in Construct to deal damage to targeted object??

  • There is no option in Construct to deal damage to targeted object??

    So i need to change every 1 sec for nearest to player and what option use to repeat attak every 1sec?

  • There is no option in Construct to deal damage to targeted object??

    Of course there is. But you need to pick the targeted instance first.

    If you want to pick the nearest instance, you can add this condition to "Every 1 second" event:

    "Target pick nearest to Player.X, Player.Y"

    I suggest you study a few tutorials and demo projects.

  • Not entirely sure if this will be helpful at all, but here is what my game does and it works quite well for me (unless the enemies are overlapping, which does occasionally happen of course, which isn't really that big of a deal lol.)

  • Thanks, overlapping was a great solution :)

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