home *** CD-ROM | disk | FTP | other *** search
/ Computer Arts 22 (Polish) / CA22.BIN / pc / Shared.cst / 00019_ButtonScripts.ls < prev    next >
Encoding:
Text File  |  2001-01-01  |  1.2 KB  |  41 lines

  1. on setPuppetButtons
  2.   
  3.   repeat with x = 112 to 115
  4.     set the puppet of sprite x = true
  5.     set the visible of sprite x = false
  6.   end repeat
  7.   
  8. end setPuppetButtons
  9.  
  10. --
  11.  
  12. on puppetButtonsRollOver
  13.   
  14.   if rollOver(116) then
  15.     set the visible of sprite 112 = true
  16.     set the visible of sprite 113 = false
  17.     set the visible of sprite 114 = false
  18.     set the visible of sprite 115 = false
  19.   else if rollOver(117) then
  20.     set the visible of sprite 112 = false
  21.     set the visible of sprite 113 = true
  22.     set the visible of sprite 114 = false
  23.     set the visible of sprite 115 = false
  24.   else if rollOver(118) then
  25.     set the visible of sprite 112 = false
  26.     set the visible of sprite 113 = false
  27.     set the visible of sprite 114 = true
  28.     set the visible of sprite 115 = false
  29.   else if rollOver(119) then
  30.     set the visible of sprite 112 = false
  31.     set the visible of sprite 113 = false
  32.     set the visible of sprite 114 = false
  33.     set the visible of sprite 115 = true
  34.   else
  35.     set the visible of sprite 112 = false
  36.     set the visible of sprite 113 = false
  37.     set the visible of sprite 114 = false
  38.     set the visible of sprite 115 = false
  39.   end if
  40.   
  41. end puppetButtonsRollOver