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

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