I am new to Objective-C, so I may be using the wrong methodology to present the scene in the first place, but at the moment when I present my new scene, the old scene can be seen through it.
- (void)buttonClicked:(UIButton*)button
{
NSLog(@"Button %ld clicked.", (long int)[button tag]);
WarScene *battle = [[WarScene alloc] initWithSize: CGSizeMake(1024,768)];
SKTransition *reveal = [SKTransition revealWithDirection:SKTransitionDirectionDown duration:1.0];
SKView * skView = (SKView *)self.view;
[skView presentScene:battle transition:reveal];
}
Is there something that I first have to write before the presentScene method which removes the current scene?
Sorry if this is a very basic question, I have already googled around and looked for examples, but none seem to have any additional code which I'm missing which suggests that I am probably presenting the scene wrong in the first place.