Skip to content
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

CCBlade doesn't work on any background other than black. #1

Open
iphonic opened this issue May 15, 2015 · 0 comments
Open

CCBlade doesn't work on any background other than black. #1

iphonic opened this issue May 15, 2015 · 0 comments

Comments

@iphonic
Copy link

iphonic commented May 15, 2015

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant