BESIDES containers?

0 favourites
  • 6 posts
  • Hay guys,

    Can anyone please help me with the whole "no containers" issue in Construct 2 <img src="smileys/smiley17.gif" border="0" align="middle" /> I need a way to have multiple objects each (one at a time) die only when THEIR "health" is less than "0" rather than every single sprite die at the same time?

    So could someone please make a capx. example for me? would really appreciate it!! <img src="smileys/smiley9.gif" border="0" align="middle" />

    FrEaK <img src="smileys/smiley1.gif" border="0" align="middle" />

  • I would just have health be a be a number variable for the object and using the "system for each", you could check each object's health individually and based on the condition destroy the object.

  • You don't even need the "For each" condition, simply "Compare instance variable" is enough.

    Nothing to see with the containers here.

    This is just basic picking, and you can check the how do I FAQ in the section "Picking / Selecting instances" to see more examples and explanations.

    Here is also a quick example capx for your issue.

  • THANKS SO MUCH Kyatric and rfisher ;)!

  • Here's even a more advanced example that kind of feels like what containers do with several type of object : Second example capx

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • shweet-o :) oh but one more thing... i have my placement sprites and everything pretty much done now right.. but as soon as i REPLACE them with the sprites i made the collision for them doesnt work anymore?? and the sprites are the exact same size and height? I even made the collision polygons a simple square again but still nothing? please help...

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)