0

按照这个代码节点一定会慢慢出现的吧?它不起作用。怎么了?

   CCNodeColor *_backNode = [CCNodeColor nodeWithColor:[CCColor colorWithRed:0 green:0 blue:0    alpha:1.0f]];
    _backNode.opacity=0;
    [self addChild:_backNode z:5];
  [_backNode runAction:[CCActionFadeTo actionWithDuration:2 opacity:0.9]];
4

1 回答 1

0

尝试使用 alpha = 0 并且不设置不透明度:

CCNodeColor *_backNode = [CCNodeColor nodeWithColor:[CCColor colorWithRed:0 
                                                                    green:0
                                                                     blue:0
                                                                    alpha:0.0f]];
于 2014-07-29T13:32:18.060 回答