Im starts 3 SKActions in sequence, the first two start just fine, but fadeInWithDuration does not disappear in the node, and the node is just added right after the view is loaded. Should I set the source alpha channel for node to 0? Can anyone help with the problem?
- (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]; }
source share