我按顺序运行 3 个 SKAction,第一个两个运行得很好,但 fadeInWithDuration 不会在节点中淡入,当视图加载时,节点会立即添加。我是否必须将节点的初始 Alpha 通道设置为 0?有人可以帮助解决问题吗?
- (void)setUpButtonStart
{
SKSpriteNode *buttonStart = [SKSpriteNode spriteNodeWithImageNamed:@"start"];
buttonStart.name = @"buttonStart";
buttonStart.position = CGPointMake(900,50);
[self addChild:buttonStart];
SKAction *wait = [SKAction waitForDuration:2.5];
SKAction *readIntro = [SKAction playSoundFileNamed:@"intro.mp3" waitForCompletion:NO];
SKAction *fadeIn = [SKAction fadeInWithDuration:1.0];
SKAction *sequence = [SKAction sequence:@[wait, readIntro, fadeIn]];
[buttonStart runAction: sequence];
}