I am working with AlertViews in my game app and want to make it so that when you click the buttons below the initial alert, they will move you to the next level, or take you back to the same level again. Right now I just have "Play again" which starts the game over, but want to change it up some. Any ideas how I can do this? I'm sure it is simple, but if anyone can help me out, it point me in the direction of some tutorials on this, that would be great. Thanks!
Sample of my code......

Sample of my code......
Code:
if (CGRectIntersectsRect(Object1.frame, Object2.frame)) {
ScoreNumber = ScoreNumber + 200;
Score.text = [NSString stringWithFormat:@"Score: %i", ScoreNumber];
Object1.image = [UIImage imageNamed:@"Object3"];
[backgroundMusic stop];
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Congrat! Level 1 completed!"
message:[NSString stringWithFormat:@"You scored %i points", ScoreNumber]
delegate:self
cancelButtonTitle:@"Move to Level 2."
otherButtonTitles:@"Play Level 1 again!", nil];
[alert show];
}
Last edited by a moderator: