Jump to content

Can I add a group in an another group?


Damla Eker
 Share

Recommended Posts

Hi all,

I cannot add a group in an another group. for example;


var mainGroup=this.add.group();
var subGroup=this.add.group();

var bg=this.add.sprite(200,300,"background");
var bonusImg=this.add.sprite(200,300,"bonusImage");

subGroup.add(bonusImg);
subGroup.add(bg);

mainGroup.add(subGroup);

This was working on Phaser 2 but not working on Phaser 3. Is there any way to solve it?

 


 

 

 

 

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...