Is there a way to change the image of a sprite which has already been initialized with another image?
I tried:
if ([node.name isEqualToString:@"NameX"]) { SKAction *fadeOut = [SKAction fadeOutWithDuration:0.3]; SKAction *fadeIn = [SKAction fadeInWithDuration:0.3]; [self.sprite runAction:fadeOut]; [self runAction:fadeOut completion:^{ self.sprite = [SKSpriteNode spriteNodeWithImageNamed:@"NameY"]; [self.sprite runAction:fadeIn] }];
}