samim Posted April 3, 2014 Share Posted April 3, 2014 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. Quote Link to comment Share on other sites More sharing options...
xerver Posted April 3, 2014 Share Posted April 3, 2014 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.