[solved] How Can I Kill The Enemy At The Same Time My Character Gets Killed?

Discussion in 'How Can I...?' started by Christoph, Jun 27, 2016.

  1. Christoph

    Christoph Miniboss Boxer

    Joined:
    Oct 4, 2015
    Messages:
    2,807
    Likes Received:
    2,309
    I'm trying to achieve something pretty simple but can't get it to work in BB2: when my character touches the enemy I want them both to get killed. In BB1 this worked in my game perfectly fine. But now in BB2 it doesn't work anymore. I tried to play with the Health and Lives of the enemy but it doesn't change a thing. The character always dies but the enemy keeps living with tons of fun. Is this a bug (I'm seeing them everywhere now) or am I doing something wrong?
     
  2. telerebor

    telerebor Avid Boxer

    Joined:
    Jan 12, 2016
    Messages:
    279
    Likes Received:
    145
    You could add a "Destroy all" action to your characters death animation. Or add an invisible character bullet object to your characters death animation and make it as big as you can to cover the whole screen.
     
    Christoph likes this.
  3. Christoph

    Christoph Miniboss Boxer

    Joined:
    Oct 4, 2015
    Messages:
    2,807
    Likes Received:
    2,309
    Thanks telerebor, but this is unfortunately not what I need. I want only the specific enemy destroyed which destroys the character.
     
  4. Christoph

    Christoph Miniboss Boxer

    Joined:
    Oct 4, 2015
    Messages:
    2,807
    Likes Received:
    2,309
    Has anyone else an idea how I could make it so that when the character clashes with the enemy both, the character AND the enemy dies? I really can't get this to work anymore... :(
     
  5. VectologyGames

    VectologyGames Serious Boxer

    Joined:
    Oct 5, 2015
    Messages:
    529
    Likes Received:
    473
    Character health= 0
    Enemy Health=0
     
    Christoph likes this.
  6. Christoph

    Christoph Miniboss Boxer

    Joined:
    Oct 4, 2015
    Messages:
    2,807
    Likes Received:
    2,309
    That worked before but not anymore. Actually all my setup is like that. But it seems I just found out how.

    Character health = 0
    Character damage = 1
    Enemy health = 0

    This seems to work...
     
  7. heathclose

    heathclose Miniboss Boxer

    Joined:
    Jan 28, 2016
    Messages:
    1,810
    Likes Received:
    1,026
    I love seeing solved in a title!
     
    nayamamarshe likes this.
  8. VectologyGames

    VectologyGames Serious Boxer

    Joined:
    Oct 5, 2015
    Messages:
    529
    Likes Received:
    473
    Yeah. Damage should be baked it though.
     

Share This Page