home *** CD-ROM | disk | FTP | other *** search
- on exitFrame
- global gameControl, score
- score = (value(field("toad1Score")) * 1) + (value(field("toad2Score")) * 5) + (value(field("toad3Score")) * 25)
- put value(score) into field "toadTotalScore"
- case gameControl.levelNum - 1 of
- 0:
- set the visible of sprite 43 to 0
- set the visible of sprite 44 to 0
- set the visible of sprite 45 to 0
- 1:
- saveIcon(24)
- set the visible of sprite 44 to 0
- set the visible of sprite 45 to 0
- 2:
- saveIcon(24)
- saveIcon(25)
- set the visible of sprite 44 to 1
- set the visible of sprite 45 to 0
- otherwise:
- set the visible of sprite 43 to 0
- set the visible of sprite 44 to 0
- set the visible of sprite 45 to 0
- end case
- end
-