Game Development Reference
In-Depth Information
8. Add a clear block. This might not look useful now, but like with the hide and show
commands in the target sprite script, this will help clear the screen once we want
to restart the game.
9. Move the tool to its staring point with a go to x: () y: () block.
10. Fill in 240 ater x and 0 ater y , so the tool starts at the right edge of the stage.
11. Next, set the pen size to 5 using a set pen size to block. Again you might want to
create a thinner or thicker line.
12. Choose a green color for a natural-looking hill in the set pen color to … block.
13. Place the drawing tool on the stage with a pen down block. We are now ready to
start drawing the landscape.
14. Then, we move the pen diagonally to the botom edge with a go to x: -100 y: -180
block. Because the pen is down, it will draw a line between its start and end point.
To make full use of our newly drawn landscape, we have to set the targets down on them.
But how do we do that on such an uneven surface? The soluion is to slowly move the
targets down and use another collision test to decide when the targets have reached the
landscape and should stop moving. We add the following script to the target sprite:
 
Search WWH ::




Custom Search