Elf Set Game – Story Board Is it?

I am making a Sprite kit game, which includes a logo screen, main menu, other menus and 2 playback scenes. Should I use a storyboard? I did it with the pure code of each scene, but I ran into problems when releasing the scene after the conversion. Will using the storyboard solve these problems?

Thank you for your answer.

I will choose the storyboard .

When you need to switch to another ViewController (via segue), just delete the SKView from the view hierarchy. This will release your SKScene:

- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
[self.skView removeFromSuperview];
self.skView = nil;
}

Please note that in this case, every time ViewController is about to appear, you need to manually add SKView to view the hierarchy:

 if (!self.skView.window) {
[self.view addSubview:self.skView];
}

I am making a Sprite kit Game, including logo screen, main menu, other menus and 2 play scenes. Should I use storyboard? I did it with the pure code of each scene, but I ran into problems when releasing the scene after the conversion. Will using the storyboard solve these problems?

Thank you for your answer.

I will choose the storyboard.

When When you need to switch to another ViewController (via segue), just delete the SKView from the view hierarchy. This will release your SKScene:

- (void) prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
[self.skView removeFromSuperview];
self.skView = nil;
}

Please note, In this case, every time ViewController is about to appear, you need to manually add SKView to view the hierarchy:

if (!self.skView.window) {
[self.view addSubview:self.skView];
}

WordPress database error: [Table 'yf99682.wp_s6mz6tyggq_comments' doesn't exist]
SELECT SQL_CALC_FOUND_ROWS wp_s6mz6tyggq_comments.comment_ID FROM wp_s6mz6tyggq_comments WHERE ( comment_approved = '1' ) AND comment_post_ID = 1773 ORDER BY wp_s6mz6tyggq_comments.comment_date_gmt ASC, wp_s6mz6tyggq_comments.comment_ID ASC

Leave a Comment

Your email address will not be published.