Time for action – stopping the statues from becoming inactive
The game file that needs to be imported and loaded for this session is 5961_04_12.stencyl
.
Ensure that the Manage Statues
actor behavior is on screen. We should be able to see the Kill statues
event. Execute the following steps to stop the statue from becoming inactive:
Click on the + Add Event button at the top of the left-hand panel.
Select Basics, then click on When Creating.
Rename the Created event to Statues always active.
Ensure that the Actor section button is selected in the instruction block palette.
Click on the Properties category button.
In the Misc subcategory, locate the blue make Self always active block, and drag it into the orange when created block, as shown in the following screenshot:
Test the game.
What just happened?
Although our game doesn't necessarily appear to behave any differently, the statues' physics properties are now still active, even when offscreen.
We have added a new when created event to the Manage Statues...