Game Development Reference
In-Depth Information
3.
Both these variables may be visible on the stage. So check their checkboxes, as
shown in the following screenshot:
4.
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.
5.
Also add the set <level> to 0 block, as shown in the following screenshot:
6.
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:
7.
Then go on to the cat sprite, which will get the most addiions to its scripts.
8.
To change the points value, we will make a new block called changePoints .
 
Search WWH ::




Custom Search