This week’s tutorial discusses how to reload/restart scenes using Storyboard. Although this may seem like a simple task, there are some things you should understand before you tackle this. Many developers want a “magical” function to accomplish this general task, but because of the way Storyboard is built on top of Lua and because of the way Storyboard’s various phases are triggered, there isn’t a utopian method to accomplish this.

To properly explain how to reload scenes in Storyboard, I’ve presented this tutorial in video format so you can understand the concept more clearly than screenshots would allow.

Before we get to the video, let’s briefly discuss intermediary scenes. In game design terms, these intermediate scenes are called “cutscenes” and they are often used to provide cinematic context. Or, they can be used to present the user with a high score screen or a menu to navigate to another place in the game flow. Sometimes they just provide a place for players to catch their breath. Depending on the design, however, some developers do not wish to have an intermediate scene between reloading the current scene. While intermediate scenes allow you to reload a scene without a lot of extra work, sometimes you may want to immediately reload the scene. This video will show you how.

Hopefully, after watching the video, you will understand Storyboard’s requirements regarding where to put various code blocks, and what is necessary to reload/restart your scene.

This article is from: 

Tutorial: Reloading Storyboard Scenes