Family HP substracting fail [Solved]

This forum is currently in read-only mode.
From the Asset Store
A collection of various zombie characters sprites for creating a 2D platformer or sidescroller game
  • I am back with yet another problem!

    I'm making a shmup level (yay my game is multigenre errr that's unimportant). In the begining, I have programmed each player's bullet vs. enemy collsion event separately for each enemy type, but that lagged A LOT, so I put all of the enemies hitbox objects into 1 family, so I have only 1 event. It looks like this:

    For each bullet:

    On collision between *enemy family* and bullet - > substract POW value from *enemy family*'s value HP

    (POW value is amount of damage done by a bullet, so I can change it to make a weapon more or less powerful)

    AND, with this event, bullet does disappear when it hits the enemy, but it doesn't do any damage. :P

    How can I make baddies destructible once again? <img src="smileys/smiley9.gif" border="0" align="middle" />

    EDIT:

    So I repaired it by... eh it's too weird to explain, but yeah it works once again! However, the framerate didn't improve THAT much...

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)