home *** CD-ROM | disk | FTP | other *** search
/ What PC? 1996 August / WPCAUG96.ISO / mgiwaug.dxr / 00005_IFLsectionWordAnimate.ls < prev    next >
Encoding:
Text File  |  1996-06-14  |  1.8 KB  |  45 lines

  1. on IFLsectionWordAnimate
  2.   global IFLhowManyWordTurnList, IFLRolledOver, IFLSpriteDifference, IFLhasLineFlashedList, IFLCanChange, GTSbuttonCount, IFLMAGNETNameSprite, IFLMovieNameList, MGISTONEON
  3.   repeat with t = 39 to 47
  4.     if rollOver(t) and (t <> IFLMAGNETNameSprite) then
  5.       set value to getAt(IFLhasLineFlashedList, t - IFLSpriteDifference)
  6.       if value = 3 then
  7.         set the castNum of sprite t to the castNum of sprite t + 1
  8.         setAt(IFLhasLineFlashedList, t - IFLSpriteDifference, value + 1)
  9.       else
  10.         if value = 6 then
  11.           set the castNum of sprite t to the castNum of sprite t - 1
  12.           setAt(IFLhasLineFlashedList, t - IFLSpriteDifference, 0)
  13.         else
  14.           setAt(IFLhasLineFlashedList, t - IFLSpriteDifference, value + 1)
  15.         end if
  16.       end if
  17.       if rollOver(t) and (IFLRolledOver <> t) and the mouseDown and (IFLCanChange = 1) then
  18.         set IFLCanChange to 0
  19.         if MGISTONEON = 1 then
  20.           forget(window "STONEY")
  21.         end if
  22.         set IFLRolledOver to t
  23.         set value to getAt(IFLhasLineFlashedList, t - IFLSpriteDifference)
  24.         if value < 4 then
  25.           setAt(IFLhasLineFlashedList, t - IFLSpriteDifference, 0)
  26.         else
  27.           setAt(IFLhasLineFlashedList, t - IFLSpriteDifference, 0)
  28.           set the castNum of sprite t to the castNum of sprite t - 1
  29.         end if
  30.         updateStage()
  31.         MGILeave(1)
  32.         repeat with g = 1 to 10
  33.           set the castNum of sprite IFLMAGNETNameSprite to the castNum of sprite IFLMAGNETNameSprite + 1
  34.           wait(0.05)
  35.           updateStage()
  36.         end repeat
  37.         cursor(-1)
  38.         puppetSound(0)
  39.         updateStage()
  40.         go(1, getAt(IFLMovieNameList, IFLRolledOver - IFLSpriteDifference))
  41.       end if
  42.     end if
  43.   end repeat
  44. end
  45.