tiedscreams Posted January 6, 2014 Share Posted January 6, 2014 I said it in another thread, but since that one was about another topic, I've decided to create a new specific thread.I try to nest one group into another:var a = game.add.group();var b = game.add.group();a.add(;but it fails (with an error in the console). The error shows in phaser.js at line 1556 (I'm using release 1.1.3): if(nextObject) { nextObject._iPrev = childLast; childLast._iNext = nextObject; }Is this by design or a bug? I'm trying to nest groups because, in my game, I already have a group that contains all items of the same kind and each of those items are group themselves (because I need to compose together two sprites animated by their spritesheet). Link to comment Share on other sites More sharing options...
tiedscreams Posted January 6, 2014 Author Share Posted January 6, 2014 Oh... I see: https://github.com/photonstorm/phaser/commit/428e331a115990f6124575690609a5c4dcceb173 Thank you! Link to comment Share on other sites More sharing options...
rich Posted January 6, 2014 Share Posted January 6, 2014 Yeah you'll see I updated it to make it easier. It was possible before (see the 'sub groups' example to see how to do it), but this new method is much cleaner and more sensible! Link to comment Share on other sites More sharing options...
Recommended Posts