Time for action – displaying the countdown timer on the screen
The game file to import and load for this session is 5961_06_01.stencyl
.
Ensure that the Score Management scene behavior is visible: click on the Dashboard tab, select Scene Behaviors, and double-click on the Score Management icon in the main panel.
Click + Add Event | Basics | When Drawing.
Double-click on the title of the new Drawing event, and rename it to
Display Countdown
.Click on the Drawing section button in the instruction block palette.
Drag a draw text anything at ( x: 0 y: 0 ) block into the orange when drawing event block in the main panel.
Enter the number
10
into the x: textbox and also enter10
into the y: textbox.Click on the drop-down arrow in the textbox after draw text and select Text | Basics. Then click on the text & text block.
In the first textbox in green, … & … block, enter the text
COUNTDOWN:
(all uppercase, followed by a colon).In the second textbox, after the & symbol, click on the drop-down...