home *** CD-ROM | disk | FTP | other *** search
/ Greatest Childrens Stories Ever Told / Greatest_Stories.iso / demos / funtown / demo.dir / 00057_Script_57 < prev    next >
Text File  |  1994-11-08  |  2KB  |  64 lines

  1. on startMovie
  2.   --puppetSprite 32, true
  3.   --set the visible of sprite 32 to 0
  4.   global theRect
  5.   set theRect = rect(the StageLeft +120, the StageTop + 30, the StageRight + 408, the StageBottom + 218)
  6.   
  7.   startMovieMacro "357 316,357 316,256 316,155 316,155 127,155 -62,256 -62,357 -62,357 127,256 127"
  8. end startMovie 
  9.  
  10. on whichHalfH userH, whichSprite, where1, where2
  11.   set centerH=(the right of sprite whichSprite-the left of sprite whichSprite)/2
  12.   set centerH=centerH+the left of sprite whichSprite
  13.   if userH<centerH then go frame where1
  14.   else go frame where2
  15. end whichHalfH
  16.  
  17. --ò example: whichHalfV the mouseV, the clickOn, "icing1", "hatboy1"
  18.  
  19. on whichHalfV userV, whichSprite, where1, where2
  20.   set centerV=(the bottom of sprite whichSprite-the top of sprite whichSprite)/2
  21.   set centerV=centerV+the top of sprite whichSprite
  22.   if userV<centerV then go frame where1
  23.   else go frame where2
  24. end whichHalfV
  25.  
  26. on doButcherCheat
  27.   set userH=the mouseH
  28.   set userV=the mouseV
  29.   if (userH>96) then --ò "sprite" 2
  30.     if (userH<191) then
  31.       if (userV>1) then
  32.         if (userV<91) then
  33.           go1 "Butcher2", "", 1
  34.           exit
  35.         end if
  36.       end if
  37.     end if
  38.   end if
  39.   if (userH>194) then --ò "sprite" 3
  40.     if (userH<257) then
  41.       if (userV>30) then
  42.         if (userV<86) then
  43.           go1 "Scale2", "", 1
  44.           exit
  45.         end if
  46.       end if
  47.     end if
  48.   end if
  49. end doButcherCheat
  50.  
  51. on cheatOnTheWoman
  52.   set userH=the mouseH
  53.   set userV=the mouseV
  54.   if (userH>3) then --ò sprite 3
  55.     if (userH<93) then
  56.       if (userV>4) then
  57.         if (userV<235) then
  58.           go1 "WomanC", "", 1
  59.           exit
  60.         end if
  61.       end if
  62.     end if
  63.   end if
  64. end cheatOnTheWoman