Time for action – responding to the player's selection
The game file to import and load for this session is 5961_07_12.stencyl
.
Create a new scene called
Main Menu
, with a background of blue; any blue will do as we'll be changing it later!Close the new scene.
In the Dashboard tab, under Actor Types, double-click on the Stencyl Book Menu Button thumbnail to display the Animation Editor, then click on the Events button in the row of gray buttons at the upper-center of the screen.
Click on + Add Event | Input | On Actor.
Change the event name to
Clicked
.Modify the when the mouse enters Self block to when the mouse is released on Self.
Add the instruction blocks to resume the game and switch to the Main Menu scene as shown in the following screenshot:
Repeat steps 3 through 6 for Stencyl Book Next Button; remember to stop after completing step 6, and then continue with the following steps.
Double-check to ensure that the Clicked events in both the Stencyl Book Menu Button and Stencyl Book Next Button...