Family HP substracting fail [Solved]

For questions about using Classic.

Post » Sat Jan 28, 2012 8:30 pm

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?

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...ciopek2012-01-30 19:27:02
Posts: 5
Reputation: 485

Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 0 guests