turjuque Posted November 28, 2013 Share Posted November 28, 2013 I seems that the group.sort() function do works only if the children of that group are sprites. But i can't find a way to swap or sort the children if they are also groups. Is there a way to do this? Link to comment Share on other sites More sharing options...
rich Posted November 28, 2013 Share Posted November 28, 2013 At the moment you'd have to manually manage that (i.e. you could get the index and do addChildAt() for a Group). Feel free to add it to github as a feature request though (in Issues). Link to comment Share on other sites More sharing options...
turjuque Posted November 28, 2013 Author Share Posted November 28, 2013 Thanks for the quick reply! I've reported the feature request. Thanks again for this amazing engine! Link to comment Share on other sites More sharing options...
turjuque Posted November 28, 2013 Author Share Posted November 28, 2013 Hmm i'm a bit stucked. I'm swapping with this :group.addAt(group._container.children[1],0);But this works only 1 or 2 times depending on the index used. Am I doing things wrong? Link to comment Share on other sites More sharing options...
Dread Knight Posted December 8, 2013 Share Posted December 8, 2013 Bump ^^' we could really use some help with this! Hmm i'm a bit stucked. I'm swapping with this :group.addAt(group._container.children[1],0);But this works only 1 or 2 times depending on the index used. Am I doing things wrong? Link to comment Share on other sites More sharing options...
rich Posted December 8, 2013 Share Posted December 8, 2013 Are you making sure you remove the Group before calling addAt? (and that the index you're adding at is valid). Link to comment Share on other sites More sharing options...
turjuque Posted December 8, 2013 Author Share Posted December 8, 2013 Yeah that was the problem! issue fixed! Link to comment Share on other sites More sharing options...
m4uro Posted February 1, 2014 Share Posted February 1, 2014 Can someone please post the workaround for this problem? I'm really stuck with it :/ . Thanks! Link to comment Share on other sites More sharing options...
Recommended Posts