soylomass Posted December 3, 2017 Share Posted December 3, 2017 The Dev Log (https://phaser.io/phaser3/devlog/73) mentions a new Game Object called Layers that acts as a graphical container for game objects, but I can't find it on the API or on the code. Does it exist yet? Otherwise what can I use as a replacement for Phaser 2 groups? There isn't anything similar? Groups in phaser 2 gave its children a relative position and the group's position and scale affected all of them. Link to comment Share on other sites More sharing options...
rich Posted December 3, 2017 Share Posted December 3, 2017 We removed them because they were incorrectly named and we stopped using a nested display list and instead went for a much faster and sortable flat display list with no parenting. We’re working on a Container object at the moment which will replace them, while still avoiding parenting hell. Link to comment Share on other sites More sharing options...
soylomass Posted December 4, 2017 Author Share Posted December 4, 2017 When do you think it will be completed? Is there any alternative currently for grouping objects? For example I want to group a character, it's health, it's name among other things and move/rotate/scale them together. (I used Groups in Phaser 2 for this) Link to comment Share on other sites More sharing options...
rich Posted December 4, 2017 Share Posted December 4, 2017 We're working on Containers this week. There is no current alternative. Link to comment Share on other sites More sharing options...
jay3sh Posted December 4, 2017 Share Posted December 4, 2017 Out of curiosity, how's the new Containers system different from what already pixi.js provides? Sorry if I missed something obvious, I don't use Phaser, but AFAIK it uses pixijs and I use pixijs containers as Layers. So I'm curious about the problems you are facing. Thanks. Link to comment Share on other sites More sharing options...
rich Posted December 4, 2017 Share Posted December 4, 2017 We don't use Pixi in Phaser 3, so this isn't a case of re-inventing something it already provides. jay3sh 1 Link to comment Share on other sites More sharing options...
JayJay Posted January 28, 2018 Share Posted January 28, 2018 On 12/3/2017 at 9:33 PM, rich said: We removed them because... Wait, so if the API is still subject to change, shouldn't it technically be considered alpha software instead of beta? Link to comment Share on other sites More sharing options...
nkholski Posted January 28, 2018 Share Posted January 28, 2018 I'm afraid there is no consistent rule for what is what. Google released numerous RC's of Angular 2, sometimes with huge API-changes. I think beta is a good term for something that you can actually make a game with but that you can't expect to trust for production. Link to comment Share on other sites More sharing options...
Ziao Posted February 18, 2018 Share Posted February 18, 2018 For anyone looking for similar functionality - I've created a temporary solution until Containers are added to Phaser 3. Feel free to let me know if this works for you https://www.npmjs.com/package/phaser3-interim-containers SefaBaser 1 Link to comment Share on other sites More sharing options...
SefaBaser Posted February 15, 2020 Share Posted February 15, 2020 It's been two years passed since this topic have been created. Is there any news, any improvements? Link to comment Share on other sites More sharing options...
Recommended Posts