home *** CD-ROM | disk | FTP | other *** search
/ What PC? 1996 August / WPCAUG96.ISO / mgiwaug.dxr / 00022_MGIFlashComp,MGIFlashTwoComp.ls < prev    next >
Encoding:
Text File  |  1996-06-14  |  1.2 KB  |  40 lines

  1. on MGIFlashComp
  2.   global MGICompCounter, MGICompOneSprite, MGICompOnStage, MGISTONEON, MGIBigBoxSprite
  3.   if MGICompOnStage = 1 then
  4.     if MGICompCounter = 3 then
  5.       set the castNum of sprite MGICompOneSprite to the castNum of sprite MGICompOneSprite + 1
  6.       updateStage()
  7.     else
  8.       if MGICompCounter = 6 then
  9.         set MGICompCounter to 0
  10.         set the castNum of sprite MGICompOneSprite to the castNum of sprite MGICompOneSprite - 1
  11.         updateStage()
  12.       end if
  13.     end if
  14.     set MGICompCounter to 1 + MGICompCounter
  15.     if MGISTONEON = 2 then
  16.       set MGISTONEON to 0
  17.       set the locH of sprite 48 to 2000
  18.       forget(window "STONEY")
  19.       updateStage()
  20.     end if
  21.   end if
  22. end
  23.  
  24. on MGIFlashTwoComp
  25.   global MGICompTwoCounter, MGICompTwoSprite, MGICompTwoOnStage
  26.   if MGICompTwoOnStage = 1 then
  27.     if MGICompTwoCounter = 3 then
  28.       set the castNum of sprite MGICompTwoSprite to the castNum of sprite MGICompTwoSprite + 1
  29.       updateStage()
  30.     else
  31.       if MGICompTwoCounter = 6 then
  32.         set MGICompTwoCounter to 0
  33.         set the castNum of sprite MGICompTwoSprite to the castNum of sprite MGICompTwoSprite - 1
  34.         updateStage()
  35.       end if
  36.     end if
  37.     set MGICompTwoCounter to 1 + MGICompTwoCounter
  38.   end if
  39. end
  40.