home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 1997: Best New Mac Games / Image(3).iso / Games / Grossology / demo.dxr / Internal_4.ls < prev    next >
Encoding:
Text File  |  1997-07-31  |  966 b   |  24 lines

  1. on HotspotKezel
  2.   global nagyito, nagyitosprite, animsprite, startsprite, endsprite, RedCircle, firsttext, firstanim, castlibname, soundstring, hotspottilt
  3.   if (nagyito = 0) and (hotspottilt = 0) then
  4.     set i to startsprite
  5.     repeat while not rollOver(i) and (i <= endsprite)
  6.       set i to i + 1
  7.     end repeat
  8.     if i <= endsprite then
  9.       set the text of field "Hotspot_text" to the name of member (i - startsprite + the number of member firsttext of castLib castlibname) of castLib castlibname
  10.       set x to the left of sprite i
  11.       set y to the top of sprite i
  12.       set w to the right of sprite i
  13.       set h to the bottom of sprite i
  14.       spriteBox(RedCircle, x, y, w + 20, h + 20)
  15.       set the locH of sprite RedCircle to x
  16.       set the locV of sprite RedCircle to y
  17.       set the visible of sprite RedCircle to 1
  18.     else
  19.       set the visible of sprite RedCircle to 0
  20.       set the text of field "Hotspot_text" to " "
  21.     end if
  22.   end if
  23. end
  24.