home *** CD-ROM | disk | FTP | other *** search
/ What PC? 1997 February / WPCFEB97.ISO / dxrs / mgiwfeb.dxr / 00022_MGIFlashComp,MGIFlashTwoComp.ls < prev    next >
Encoding:
Text File  |  1996-12-05  |  2.0 KB  |  65 lines

  1. on MGIFlashComp
  2.   global MGICompCounter, MGICompOneSprite, MGICompOnStage, MGISTONEON, MGIBigBoxSprite, MGISTCompCounter, STComp
  3.   if MGICompOnStage = 1 then
  4.     if MGISTONEON <> 1 then
  5.       if MGICompCounter = 3 then
  6.         set the castNum of sprite MGICompOneSprite to the castNum of sprite MGICompOneSprite + 1
  7.         updateStage()
  8.       else
  9.         if MGICompCounter = 6 then
  10.           set MGICompCounter to 0
  11.           set the castNum of sprite MGICompOneSprite to the castNum of sprite MGICompOneSprite - 1
  12.           updateStage()
  13.         end if
  14.       end if
  15.       set MGICompCounter to 1 + MGICompCounter
  16.     else
  17.       if STComp = 0 then
  18.         set STComp to 1
  19.         set the locH of sprite 22 to 200
  20.         set the locV of sprite 22 to 200
  21.         updateStage()
  22.       else
  23.         if STComp = 1 then
  24.           if MGISTCompCounter = 2 then
  25.             set the castNum of sprite 22 to the castNum of sprite 22 + 1
  26.             updateStage()
  27.           else
  28.             if MGISTCompCounter = 4 then
  29.               set MGISTCompCounter to 0
  30.               set the castNum of sprite 22 to the castNum of sprite 22 - 1
  31.               updateStage()
  32.             end if
  33.           end if
  34.           set MGISTCompCounter to 1 + MGISTCompCounter
  35.         end if
  36.       end if
  37.     end if
  38.     if MGISTONEON = 2 then
  39.       set MGISTONEON to 0
  40.       set STComp to 0
  41.       set the locH of sprite 48 to 2000
  42.       set the locH of sprite 22 to 2000
  43.       forget(window "STONEY")
  44.       updateStage()
  45.     end if
  46.   end if
  47. end
  48.  
  49. on MGIFlashTwoComp
  50.   global MGICompTwoCounter, MGICompTwoSprite, MGICompTwoOnStage
  51.   if MGICompTwoOnStage = 1 then
  52.     if MGICompTwoCounter = 3 then
  53.       set the castNum of sprite MGICompTwoSprite to the castNum of sprite MGICompTwoSprite + 1
  54.       updateStage()
  55.     else
  56.       if MGICompTwoCounter = 6 then
  57.         set MGICompTwoCounter to 0
  58.         set the castNum of sprite MGICompTwoSprite to the castNum of sprite MGICompTwoSprite - 1
  59.         updateStage()
  60.       end if
  61.     end if
  62.     set MGICompTwoCounter to 1 + MGICompTwoCounter
  63.   end if
  64. end
  65.