I have this
this->mDrawNode =DrawNode::create();
this->mDrawNode->retain();
this->mNode->addChild(this->mDrawNode,0,MAP_DRAWNODE_TAG);
…
this->mDrawNode->drawSegment(Vec2(p1.x,p1.y), Vec2(p2.x,p2.y), 3, this->mDrawNodeColor);
… blablabla
-> all is ok color… opacity (1 in this case)… segment
void CEffect::Update(float dt)
{
…
this->mDrawNode->setOpacity(128); // opacity doesn’t change
…
}
i tried
this->mNode->setCascadeOpacityEnabled(true);
this->mDrawNode->setCascadeOpacityEnabled(true);
-> it changes nothing
Impossible to make a fade effect on my drawing node…
What I’m missing?
Any idea?