You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I ran your sample FruitNinja, the blade is very nice, though it doesn't show if any other layer with different color is added, even if a sprite with any image. See my implementation what I am trying to do.
LayerColor *cLayer=LayerColor::create(Color4B::BLUE);
addChild(cLayer);
Layer *layer=Layer::create();
addChild(layer,90);
for (int i = 0; i < 3; i++)
{
Blade* blade = Blade::createWithMaximumPoint(50);
blade->setAutoDim(false);
blade->setTexture(texture);
layer->addChild(blade, 100);
_blades.pushBack(blade);
}
I have created a blue color layer, and on top of that a normal layer, on which the blade has been added. On swiping the blade doesn't show.
But if I remove the cLayer it works.
Can you help?
The text was updated successfully, but these errors were encountered:
Hi, I ran your sample FruitNinja, the blade is very nice, though it doesn't show if any other layer with different color is added, even if a sprite with any image. See my implementation what I am trying to do.
I have created a blue color layer, and on top of that a normal layer, on which the blade has been added. On swiping the blade doesn't show.
But if I remove the cLayer it works.
Can you help?
The text was updated successfully, but these errors were encountered: