An intuitive and functional Graphical User Interface (GUI) is an essential element of any high quality, polished computer game. It is important that the visual style of all such GUI elements be intuitive and in aesthetic harmony with the overall style and theme of the game. In this chapter, we will learn:
How to import and configure Actors that can be used as buttons in the menu screen
How to program the basic functionality of such buttons
How to create the overall look of the menu screen
Adding the scene and background
To create our menu screen, we will need to create a brand new scene, and then add a new background to this menu scene before we start adding our buttons. To do so perform the following steps:
Go to the Dashboard tab, select Scenes, then click on Create New, as shown in the following screenshot:
In the ensuing window, set Name to Main Menu, and leave all of the other values unchanged. Click on Create.
After a few moments, you will see a new, blank scene appear on the screen. Next, click on the + button in the Layers pane, and select New Background Layer, as shown in the following screenshot:
The Choose a Background window will appear. Select Home Screen Background, and then click on OK. You will see the background appear in the preview of your scene.