Game Development Reference
In-Depth Information
Both these variables may be visible on the stage. So check their checkboxes, as
shown in the following screenshot:
In the Stage object, add a block to the exising script by adding the set <points> to
(0) block when the Space bar key is pressed.
Also add the set <level> to 0 block, as shown in the following screenshot:
Then, move on to the ileGenerator sprite. Here, set the change <level> by (1) and
change <points> by (100) blocks, as shown in the following screenshot, each ime a
level is created:
Then go on to the cat sprite, which will get the most addiions to its scripts.
To change the points value, we will make a new block called changePoints .
Search WWH ::

Custom Search