home *** CD-ROM | disk | FTP | other *** search
/ Human & Space in Asia / ARIF_ASCI.ISO / pc / arif.dir / 00466.ls < prev    next >
Encoding:
Text File  |  1996-09-25  |  4.5 KB  |  145 lines

  1. on exitFrame
  2.   global CursorSpr, Fotos, WhichFoto, oldcast, oldx, oldy, ThereisF, ThereisA, ThereisS, Volum, ThereisT, alindi, ustunde, Where
  3.   if soundBusy(1) then
  4.     if the volume of sound 2 = Volum then
  5.       set the volume of sound 2 to 10
  6.     end if
  7.   else
  8.     if the volume of sound 2 = 10 then
  9.       set the volume of sound 2 to Volum
  10.     end if
  11.   end if
  12.   set mx to the mouseH
  13.   set my to the mouseV
  14.   if not alindi then
  15.     if (abs(oldx - mx) > 5) or (abs(oldy - my) > 5) then
  16.       set oldx to mx
  17.       set oldy to my
  18.       startTimer()
  19.       if not (the visible of sprite 6) then
  20.         cursor(-1)
  21.         if ThereisS or ThereisA or ThereisT then
  22.           ParmakCursor(6)
  23.           set the visible of sprite 6 to 1
  24.         end if
  25.         if ThereisF then
  26.           ParmakCursor(7)
  27.           set the visible of sprite 7 to 1
  28.         end if
  29.       end if
  30.     else
  31.       if (the timer > 150) and the visible of sprite 6 then
  32.         cursor(200)
  33.         if ThereisS or ThereisA or ThereisT then
  34.           set the visible of sprite 6 to 0
  35.           set the cursor of sprite 6 to 200
  36.         end if
  37.         if ThereisF then
  38.           set the cursor of sprite 7 to 200
  39.           set the visible of sprite 7 to 0
  40.         end if
  41.       end if
  42.     end if
  43.     if WhichFoto = Fotos then
  44.       set the cursor of sprite 4 to 0
  45.     else
  46.       set the cursor of sprite 4 to 200
  47.     end if
  48.     if WhichFoto = 1 then
  49.       set the cursor of sprite 3 to 0
  50.     else
  51.       set the cursor of sprite 3 to 200
  52.     end if
  53.     repeat while 2 > 1
  54.       if rollOver(2) then
  55.         if oldcast <> 2 then
  56.           if Where = 0 then
  57.             set the castNum of sprite CursorSpr to the number of cast "GoBack1"
  58.           else
  59.             set the castNum of sprite CursorSpr to the number of cast "GoBack2"
  60.           end if
  61.           set oldcast to 2
  62.         end if
  63.         set the locH of sprite CursorSpr to the mouseH
  64.         set the locV of sprite CursorSpr to the mouseV
  65.         exit repeat
  66.       end if
  67.       if rollOver(3) and (WhichFoto > 1) then
  68.         if oldcast <> 3 then
  69.           set the castNum of sprite CursorSpr to the number of cast "GoLeft"
  70.           set oldcast to 3
  71.         end if
  72.         set the locH of sprite CursorSpr to the mouseH
  73.         set the locV of sprite CursorSpr to the mouseV
  74.         exit repeat
  75.       end if
  76.       if rollOver(4) and (WhichFoto < Fotos) then
  77.         if oldcast <> 4 then
  78.           set the castNum of sprite CursorSpr to the number of cast "GoRight"
  79.           set oldcast to 4
  80.         end if
  81.         set the locH of sprite CursorSpr to the mouseH
  82.         set the locV of sprite CursorSpr to the mouseV
  83.         exit repeat
  84.       end if
  85.       if oldcast <> 0 then
  86.         set the castNum of sprite CursorSpr to the number of cast "ΓÇ╣kona Karesi"
  87.         set oldcast to 0
  88.       end if
  89.       exit repeat
  90.     end repeat
  91.   end if
  92.   if alindi and rollOver(11) and not ustunde then
  93.     puppetSound("tikirti")
  94.     set bekle to 5
  95.     set the castNum of sprite 11 to the number of cast "Vazosol"
  96.     startTimer()
  97.     repeat while the timer < bekle
  98.       set the locH of sprite 12 to the mouseH
  99.       set the locV of sprite 12 to the mouseV
  100.     end repeat
  101.     set the locH of sprite 12 to the mouseH
  102.     set the locV of sprite 12 to the mouseV
  103.     updateStage()
  104.     set the castNum of sprite 11 to the number of cast "Vazo"
  105.     startTimer()
  106.     repeat while the timer < bekle
  107.       set the locH of sprite 12 to the mouseH
  108.       set the locV of sprite 12 to the mouseV
  109.     end repeat
  110.     set the locH of sprite 12 to the mouseH
  111.     set the locV of sprite 12 to the mouseV
  112.     updateStage()
  113.     set the castNum of sprite 11 to the number of cast "Vazosag"
  114.     startTimer()
  115.     repeat while the timer < bekle
  116.       set the locH of sprite 12 to the mouseH
  117.       set the locV of sprite 12 to the mouseV
  118.     end repeat
  119.     set the locH of sprite 12 to the mouseH
  120.     set the locV of sprite 12 to the mouseV
  121.     updateStage()
  122.     set the castNum of sprite 11 to the number of cast "Vazo"
  123.     startTimer()
  124.     repeat while the timer < bekle
  125.       set the locH of sprite 12 to the mouseH
  126.       set the locV of sprite 12 to the mouseV
  127.     end repeat
  128.     set the locH of sprite 12 to the mouseH
  129.     set the locV of sprite 12 to the mouseV
  130.     updateStage()
  131.     set ustunde to 1
  132.   else
  133.     if alindi and not rollOver(11) then
  134.       set ustunde to 0
  135.     end if
  136.   end if
  137.   if Where = 7 then
  138.     set the castNum of sprite CursorSpr to the number of cast "ΓÇ╣kona Karesi"
  139.     puppetSound(0)
  140.     updateStage()
  141.     go(the frame + 1)
  142.   end if
  143.   go(the frame)
  144. end
  145.