home *** CD-ROM | disk | FTP | other *** search
/ 15 Beaut Aussie Games 1 / BEAUTGAMESV1.iso / pc / Windows / data1.cab / Program_Files / dswmedia / games / canetoad.dcr / gameControl_24.ls < prev    next >
Encoding:
Text File  |  2002-01-01  |  745 b   |  25 lines

  1. on exitFrame
  2.   global gameControl, score
  3.   score = (value(field("toad1Score")) * 1) + (value(field("toad2Score")) * 5) + (value(field("toad3Score")) * 25)
  4.   put value(score) into field "toadTotalScore"
  5.   case gameControl.levelNum - 1 of
  6.     0:
  7.       set the visible of sprite 43 to 0
  8.       set the visible of sprite 44 to 0
  9.       set the visible of sprite 45 to 0
  10.     1:
  11.       saveIcon(24)
  12.       set the visible of sprite 44 to 0
  13.       set the visible of sprite 45 to 0
  14.     2:
  15.       saveIcon(24)
  16.       saveIcon(25)
  17.       set the visible of sprite 44 to 1
  18.       set the visible of sprite 45 to 0
  19.     otherwise:
  20.       set the visible of sprite 43 to 0
  21.       set the visible of sprite 44 to 0
  22.       set the visible of sprite 45 to 0
  23.   end case
  24. end
  25.