For more informations about containers have a look at my cheatsheet . You will find links to the official code and at the bottom links to some references, f.e. the Phaser 3 Dev Log #120 which was also about containers.
Thank you for your response.
Now I understand how I can add text to my container along with the sprite.
But my real question is: I want to enable physics for container and set the sprite in it for hitbox, in addition, I want to modify my container’s velocity according to user input.
Hi there !
I’m running the same issue atm, did someone figured it out ?
I’m not trying to set the collition to the container but to a sprite within it so all the container stops when hitting an object…
Is it not possible ? If you have some suggestions i’ll take them
I figured a way but now I’m running other small issues, like flipping the sprite within the container. I’m farly new to Phaser3 and especially JS but i think it works correctly.
I found the index of the sprithe within the container using the chrome console inspector tool and searching for the correct data to edit. I’ll be glad to help you if you need more info