New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
swapChild implemented via addChildAt #350
Conversation
I also have a different approach, re-knitting the linked list, but somehow i had an error somewhere halfway through that created an infinite loop. If you're interested in that, you can have a look at it right here: ccoenen@ef34c55 |
I'd be interested to compare this with phaser's swap implementation: https://github.com/photonstorm/phaser/blob/dev/src/core/Group.js#L232 |
Hey guys, I am trying to figure out, what is the way to handle order of sprites in PIXI? My particular situation: I have 10000 sprites and say 100 others which I need to place in front of specific sprite from the big group. The only thing I can think of now is to keep track of indices of the 10000 sprites and use addChildAt. Is there a way to addChildAfter(sprite1, sprite2) - that would be all I need, I think. |
An I guess my problem is that the linked list implementation is a bit confusing in regards to property names, and I have unfortunately tried to avoid it. I would love to have exposed properties such as |
Implemented #431 |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
swapChild was currently not available, i implemented it via two simple addChildAt calls. This would also close #287.