Jump to content

Why destroy() does not count to countDead() in group?


notalentgeek
 Share

Recommended Posts

I have this game I made. A character have a gun and it can shoot bullets, the bullets will gone after reach a distance of 100 pixels.

The bullets are in bullet group, of which I set to have only 50 bullets. And I used destroy(true); to every bullet that has passed 100 pixels. However when the bullet is destroyed it does not count to group's countDead(). Hence, countDead() is always 0 even though bullets have go though 100 pixels and got destroyed.

 

So my question is how can you destroy a group member and make it count to as in countDead()?

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...