Jump to content

SpriteBatch & buttonMode? / Set top layerIndex for addChildAt?


samim
 Share

Recommended Posts

I´m having a hard time getting sprites with setInteractive(true) & buttonMode=true to register clicks when using a SpriteBatch container.

Works like a charm with the regular DisplayObjectContainer. Anybody got a idea what i might be doing wrong?

 

Alternatively is it possible to render a SpriteBatch container behind a regular DisplayObjectContainer?

 

Curios as well how to set the maximum available layers on scene-start, which is then used when inserting sprits with addChildAt(sprite,layerIndex).

Noticed that sometimes on rapid scene destroy/reload it throws errors, the targeted layer does not exist.

Link to comment
Share on other sites

Sprites inside of a SpriteBatch are only rendered. There are no advanced features like interaction, filtering, masking, etc. There are rendered from position, alpha, and rotation; as quickly as possible. If you want to have advanced features use a  DOC.

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