Babsobar Posted April 2, 2018 Share Posted April 2, 2018 Hello, I'm trying to group together UI elements so that I don't have to assign properties like being locked on screen to each and every one of them every time. In phaser 2 this was done by manipulating groups. While looking through phaser 3's doc I noticed that groups don't exist as they used to, and I can't seem to find how to do groups for UI elements now. Is there a particular way of doing UI elements in phaser 3 or has this not been implemented yet? Thanks Link to comment Share on other sites More sharing options...
PixelPicoSean Posted April 3, 2018 Share Posted April 3, 2018 Container is exactly what you are looking for. It is still WIP and can be found in the `container` branch. Link to comment Share on other sites More sharing options...
spencerTL Posted April 3, 2018 Share Posted April 3, 2018 I haven't used Phaser3 hands on yet, but I remember Rich saying that states could be used for much of what groups were used for as multiple states can be on screen at the same time. Link to comment Share on other sites More sharing options...
snowbillr Posted April 3, 2018 Share Posted April 3, 2018 States are now called Scenes in Phaser 3, and you can have multiple scenes running in parallel. This means that you can have all of your UI elements in one scene running in parallel (and on top of) your gameplay scene. Link to comment Share on other sites More sharing options...
Recommended Posts