
Learning Stencyl 3.x Game Development: Beginner's Guide
By :

The game file that needs to be imported and loaded for this session is 5961_04_16.stencyl
.
Ensure that the Health
behavior is being displayed. It currently contains a single event called Countdown expired
. Now perform the following steps:
Click on + Add Event | Advanced | Custom Event.
Rename the Custom Event to Relocate monkey.
In the new orange when … happens event block, enter the name RestartLevel
(note the capitalization and that there no spaces).
In the block palette, under Actor, click on Position, locate the set x to 0 for Self block, and drag it into the when RestartLevel happens block.
Hold down the Alt key on the keyboard (Option on Mac OS X), and drag the new set x to … for Self block so that a copy of it appears below the first one.
In the top set x to … for Self block, enter the number 200
into the textbox.
In the lower set x to 0 for self block, click on the x option and change it to y, then enter 175
in the textbox, as shown...
Change the font size
Change margin width
Change background colour