Time for action – displaying the game over banner
The game file to import and load for this session is 5961_07_15.stencyl
.
Download the Stencyl Book Game Over Banner and the Stencyl Book Play Button actors from StencylForge.
Set the physics properties for both the actors so that they cannot be moved or paused.
Ensure that the Stencyl Book Play Button tab is currently selected, and click on the Events button in the row of gray buttons above the Animation Editor panel.
Click on + Add Event | Input | On Actor to add a new input event and rename it to
Clicked
, then modify the event so that it appears as shown in the following screenshot, remembering that the purple blocks are game attributes:Open the Score Management scene behavior, and in the left-hand panel, right-click on the Display Success Banner event name and select Duplicate, then rename the newly duplicated event to
Display Game Over Banner
.Modify the new Display Game Over Banner event as shown in the following screenshot, ensuring that...