area damage is it possible?

0 favourites
  • 5 posts
From the Asset Store
This sound pack features 117 game sounds : Axe,Punch Swing & Hit & Damage. This is a perfect collection for your game.
  • Hello everyone, I'm new here, how can I create area damage? I know that a sprite in the shape of a circle when hitting the enemy makes him lose HP,

    But how do I make this circle of area damage for each of them that were hit instead of just one?

  • Didn't you ask this question a few days ago?

    Use "AreaSprite On collision with Enemy" event - it will pick all enemies inside the area. If the area needs to deal damage over time, you can do something like this:

    Every 0.5 seconds
    AreaSprite Is overlapping Enemy : Enemy subtract 10 from HP
    
  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Is a bit difficult to understand what you mean by area.

    It sounds like you want to reduce damage to the enemy for every sprite that hits him?

    You could use the:

    Enemy on collisions with sprites: ----------> Reduce damage

    https://www.dropbox.com/scl/fi/vm3pja2mymtlulg5vzd9g/Collisions.c3p?rlkey=x1ju8w7snxf101um1wtztswhc&dl=0

    Or do you mean something else?

  • Hello tarek2 It wouldn't be exactly that

    I would like, for example, that when a bomb explodes near enemies, the bomb's damage decreases the enemies' health. But when I do this, it only decreases the health of one enemy.

  • Hello tarek2 It wouldn't be exactly that

    I would like, for example, that when a bomb explodes near enemies, the bomb's damage decreases the enemies' health. But when I do this, it only decreases the health of one enemy.

    There is not much info, so will be impossible to help:

    You say that you have a circle which you are using as the radius area damage, and when it hits multiple enemies it should subtract from their damage. That should work with any of the options they already provided you.

    Enemy on collision sprites: ------> Sprite Subtract health

    or

    Enemy on overlaps sprites: ------> Sprite Subtract health

    Any of the two should pick all the sprites touching the enemy.

    Not sure where is the issue?

    The example I provide you already shows you that is working with "On Collisions" which picks all the sprites that collide with the enemy.

    You just have to replace the "destroy" action with sprite subtract Health.

    But when I do this, it only decreases the health of one enemy.

    If you are asking why isn't working your example then is impossible for anyone to know as they can't see your project. You gonna have to provide an example showing what is not working, so someone can give you an accurate answer. At the moment we just guessing.

    It sounds like you have a Picking problem but we cannot move farther as we need to see an example to investigate.

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