Jump to content

Why GameObjects dont have add child functionality?


mazoku
 Share

Recommended Posts

On 1/12/2020 at 6:23 PM, rich said:

It’s more overhead for every single Game Object to be a container. How many buttons does a typical game contain vs. things like bullets, platforms, particles, baddies, power-ups, etc etc.

It sounds like it would be bad practice to use containers in Phaser 3, is that the case? Say I don't nest them at all, just use them to define more complex Game Objects that require layered sprites. So an example would be to have 10 moving sprites, compared to 10 moving containers (with 1 sprite child) (without physics).

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

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