soylomass

Where are the Layers?

Recommended Posts

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.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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)

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites
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?  :huh:

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.