Jump to content

Remove child from group but not from stage?


spinnerbox
 Share

Recommended Posts

How can I remove child from a group but I don't want it deleted or killed from stage?

 

I keep all my screen objects in a group called screenObject for fading in. 

Then I have another group called cardGroup which keeps only the card sprites. I want to remove just two specific card sprites from cardGroup.

 

I do this

 

cardGroup.remove(card1, false);

cardGroup.remove(card2, false);

 

But it removes the object from stage as well.

 

What do I do wrong? Or what to do?

Link to comment
Share on other sites

  • 6 years later...
 Share

  • Recently Browsing   0 members

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