Time for action – making the behavior more flexible
The game file that needs to be imported and loaded for this session is 5961_06_07.stencyl
.
Ensure that the
Drop Actors Randomly
behavior is being displayed. Execute the following steps in order to make the behavior more flexible
Delete the number
320
from the right-hand textbox in the green addition block (it's not strictly necessary to delete this, but it keeps everything neater).Click on the drop-down arrow in the same textbox from which we just deleted the number.
In the Math section of the pop-up menu, click on the 0 x 0 block.
Click on the drop-down arrow in the left-hand textbox of the newly added green multiplication block.
Select Scene from the drop-down menu and then, in the Basics section of the next pop-up menu, click on the red screen width block.
In the right-hand textbox of the green multiplication block enter the number
0.5
. Your screen should like the following screenshot:Test the game.
What just happened?
Nothing appears to have...