Hide group with custom objects in it?


#1

Hi here !

I’m writting my first phaser3 game (wrote a lot with Phaser2) but lot of changes !!

I’m currently creating a game with lot of pop-up and my problem is : I add a custom object to my pop-up group, but when i call toggleVisible(), all the elements disapears except my custom object…

I don’t understand why ?

Need your help,

Thanks,

Nico.


#2

Do you use this.add.existing() to add your custom object to the scene ? Your problem may be related to this one, about the display and update lists : Animations on nested sprites.


#3

Yes i did !

let colorSelector = this.add.existing(new ColorSelector2(this,200,200));