Enemies Killed Together With One Bullet

Discussion in 'How Can I...?' started by User, Sep 19, 2016.

  1. User

    User Boxer

    Joined:
    Jul 26, 2016
    Messages:
    39
    Likes Received:
    3
    In my game i have enemies in queue, i want to kill it one by one. But one bullet kills 2-3 enemies together. Anyone has any idea why this is happening. Thanks in advance.
     
  2. spicedbeangames

    spicedbeangames Miniboss Boxer

    Joined:
    Mar 31, 2016
    Messages:
    1,347
    Likes Received:
    566
    how many bullets are you firing? if you are firing lots, you will kill lots. try single shooting.
     
  3. User

    User Boxer

    Joined:
    Jul 26, 2016
    Messages:
    39
    Likes Received:
    3
    Thank you for reply, I am firing single time. then also its killing 3 enemy at a time. is there any particular settings for single firing ? sorry for such questions I am new to build box don't have much idea.
     
  4. aryanveer95

    aryanveer95 Boxer

    Joined:
    Oct 7, 2015
    Messages:
    30
    Likes Received:
    8
    Change Health and damage of the bullet and enemy to 1
     
  5. khalid

    khalid Avid Boxer

    Joined:
    Feb 17, 2016
    Messages:
    343
    Likes Received:
    67
    I think your best bet is to set enemies health to 2 or 3

    You can do that from add component->Health of each object (enemy)

    In this case you need to shoot the enemy 2 or 3 times to be killed
     
  6. User

    User Boxer

    Joined:
    Jul 26, 2016
    Messages:
    39
    Likes Received:
    3
    yes i have set health of enemy to 1 only. but then also this is happening.
     
  7. User

    User Boxer

    Joined:
    Jul 26, 2016
    Messages:
    39
    Likes Received:
    3
    No, i gave 1 health to the enemy.
     
  8. Christoph

    Christoph Miniboss Boxer

    Joined:
    Oct 4, 2015
    Messages:
    2,808
    Likes Received:
    2,310
    The bullet just keeps going. That's why. You need a little trick to make it work the way you want to. At least that's how I remember it should work:

    Attach an invisible platform to each enemy, exactly at the same height. This will stop the bullet from traveling through. Please confirm if this works or not.
     
    User likes this.
  9. User

    User Boxer

    Joined:
    Jul 26, 2016
    Messages:
    39
    Likes Received:
    3
    Thanks, I tried ur solution but its seems not working for me. Any other solution ? I want to show the health bar for this (attached image) enemy thats y i added sticks as enemies before main enemy. Am i doing correct ?
     

    Attached Files:

  10. heathclose

    heathclose Miniboss Boxer

    Joined:
    Jan 28, 2016
    Messages:
    1,810
    Likes Received:
    1,024
    just brainstorming untested, but your bullets are objects with a spawner right? just give the object one health... wouldn't that work?
     
    User and Christoph like this.
  11. User

    User Boxer

    Joined:
    Jul 26, 2016
    Messages:
    39
    Likes Received:
    3
    Thanks Heathclose, your solution works half, now every bullet is killing "two enemies" every time, still working on that. I was not using object as bullet with spawner.
     

Share This Page