First, the person playing your game wants to know right away whether they succeeded at clicking Alonzo before he moved out of the way.
The Alonzo character is named after Alonzo Church, a major contributor to early computer science. In this project, there are three objects related to Alonzo:
next costume
block to the place in your program where the user has just clicked on Alonzo.The player will also want to know how much progress they have made in the game. The command can control Alonzo's transparency.
The transparency of an image is how much you can see what's behind it. For example, here is the Alonzo sprite shown with three different transparencies (which have been set using the ghost effect
block).
Use transparency to tell the user how close they are to winning: every time they click, Alonzo gets more invisible, and when he disappears completely, they win the game.
change (ghost) effect
block into the center scripting area, and experiment with different input numbers (clicking it repeatedly after each change) to see exactly what it does. At what ghost effect value does Alonzo become completely invisible? You can use the command to make Alonzo fully opaque again.So far, even a bad player will eventually make Alonzo disappear. The game will be much more interesting if the player is penalized for missing a click.
change (ghost) effect by (-5)
block to your script to make Alonzo get less transparent any time he moves without being clicked. change effect
input number (for either instance of the block) and/or the wait
time to make the game easier or harder.When Alonzo is completely transparent, the game should stop.