I know that this question has already been asked, I have gone through all the posts but I can't still get it to work, I guess I'm just a noob.
Here's the problem. I followed a tutorial on how to create a tap game, I'm trying to add a Pause Button so that when the player taps on it the timer(which is only for 30s) pauses, not stops, and then resume. I have tried implementing other solutions but I cannot integrate it, the program keeps crashing. Here are the methods I created:
//Pause Game Methods
-(void)pauseTimer {
if(isPaused == YES) {
//IMPLEMENT SOMETHING
}
}
- (IBAction)pauseButton:(UIButton *)sender {
isPaused = YES;
}
- (IBAction)resumeButton:(UIButton *)sender {
isPaused = NO;
}
Any help is appreciated.