home *** CD-ROM | disk | FTP | other *** search
/ Shocking The Web CD-ROM / SHOCK_CD.ISO / pc / tutorial / devglry / mcny / source / funhouse.dir / 00031.ls < prev    next >
Encoding:
Text File  |  1996-05-06  |  726 b   |  34 lines

  1. on enterFrame
  2.   global whichroom, gotbug, fireon
  3.   set whichroom to 1
  4.   if rollOver(21) and the mouseDown then
  5.     puppetSprite(20, 1)
  6.     set the locH of sprite 20 to 170
  7.     set the locV of sprite 20 to 130
  8.     set the ink of sprite 20 to 8
  9.     set the castNum of sprite 20 to 85
  10.   else
  11.     if rollOver(22) and the mouseDown then
  12.       puppetSprite(20, 1)
  13.       set the locH of sprite 20 to 70
  14.       set the locV of sprite 20 to 85
  15.       set the ink of sprite 20 to 8
  16.       set the castNum of sprite 20 to 89
  17.     else
  18.       puppetSprite(20, 0)
  19.     end if
  20.   end if
  21.   updateStage()
  22. end
  23.  
  24. on mouseDown
  25.   global gotbug
  26.   if gotbug = 1 then
  27.     set the moveableSprite of sprite 9 to 1
  28.   end if
  29. end
  30.  
  31. on exitFrame
  32.   go("room1")
  33. end
  34.