What? Posted December 20, 2014 Share Posted December 20, 2014 This seems like a simple question. How do I make it so everything is drawn behind a retrofont? I tried bringToTop() but it didn't work. Link to comment Share on other sites More sharing options...
oddskill Posted December 20, 2014 Share Posted December 20, 2014 You could use groups for z-order. this.background_group = this.add.group(); this.enemies_group = this.add.group(); this.endboss_group = this.add.group(); this.graphicfx_group = this.add.group(); this.retrofont_group = this.add.group(); everything added to retrofont group is displayed above everything put in the other groups. For display order inside a group have a look at http://examples.phaser.io/_site/view_full.html?d=groups&f=display+order.js&t=display%20order regards odd Link to comment Share on other sites More sharing options...
Recommended Posts