Click to reopen instructions.

The project below is a finished version of the Unit 1 Click Alonzo game, for continuing in Unit 2. (If you still have your own working version from Unit 1, keep using that instead.) Alonzo greets you when the green flag is clicked, and every time you click him he switches between his two costumes, fades a step closer to invisible, and jumps to a random spot every second, slowly fading back in—click him enough times and he disappears and the game ends. Play it and review the code so you understand how it works.

Your job is to extend the game as described in Unit 2 Lab 1: create a global score variable, initialize it to 0 at the start, change it by 1 whenever Alonzo is clicked, and use a conditional to end the game with a congratulations when the player reaches a winning score. Then let the player pick Alonzo's look: add several costumes and use ask, my costumes, and item of to switch to the costume number the player chooses.

Your work autosaves (and you can use the Save button); earlier versions are available from the Revisions dropdown.

Click Alonzo (Unit 2)

Revisions: