Jump to content

Parent display objects and their possible children? Graphics in Group, Sprite in Sprite?


tackle
 Share

Recommended Posts

I'm trying to figure out what the possible parent-child situations are for the following object types:

Game, Group, Sprite, Graphics

 

This I know:

- Game can contain Groups, Sprites and Graphics.

- Groups can contain Sprites.

 

Unsure of:

- Can Sprites contain other Sprites?

- Can a Group contain a Graphics object?

- Can a Sprite contain Graphics?

- Can a Group have inner Groups?

- What can a Group have as parent, if not only Game?

 

I'm trying to design a little pause-menu and I'm switching back and forth between object types to be the actual menu.

I thought Group would be the best, but it seems I cannot have a "lightbox-ish" semi-transparant black background Graphics in it to cover up my game area.

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...