Closed kaansoral closed 8 years ago
Hmm
"all objects that don't have displayGroup are added in "displayChildren" list of first parent that has it a displayGroup."
For me, I have to manually set a .displayGroup, or the child is not visible
Edit: Also thanks for the awesome plugin, after 10 minutes of using it, I love it, tho I manually added .displayGroup adoption to 1-2 places, luckily I don't have many unique sprite types yet
@kaansoral that's a bug. Can you make me a small demo?
Here you go:
var bunny = new PIXI.Sprite(texture_green);
var bunny2 = new PIXI.Sprite(texture_green);bunny2.width=25; bunny2.height=25;
bunny2.x=-50; bunny2.y=-50;
//bunny2.displayGroup = greenLayer;
bunny.addChild(bunny2);
Append this to the demo, if the commented out part stays commented out, the small bunnies are not visible
Ok, i see the stupid bug. gona update the lib
All done, all is working, please check it.
Thanks, updated, works great :)
When I explicitly set the displayGroup of the child, the order from the parent seemed random, sometimes the child appeared on top, sometimes bottom, didn't pay attention too much
However, as far as I observe, it's always on the front now, as expected
Hi
So I've just started using pixi-display, first thing I noticed is that the children of a sprite are not directly visible, they are invisible, I should probably give them a displayGroup too, however, I think shouldn't need to
Any ideas?