Time for action – switching animations with instruction blocks
The game file to import and load for this session is 5961_05_06.stencyl
.
Ensure that the
Health
actor behavior is displayed on the screen — click on the Dashboard tab, then click on Actor Behaviors, and double-click on the Health behavior's icon in the main panel.Click on the + Add Event button at the top of the left-hand panel.
Select Advanced, and then Custom Event.
Rename the new Custom Event to
Show Angel
in the left-panel.In the new event's when … happens block, enter the text
ShowAngel
(note that there is no space).In the instruction block palette, click on the Behavior section button, then click on the State category button.
Drag the Enable behavior text for Self instruction block into the orange when ShowAngel happens block.
In the new Enable behavior ... for Self block, click on Enable and change it to Disable.
In the same block, click on the drop-down arrow after the word behavior, select Behavior Names in the pop-up menu...