home *** CD-ROM | disk | FTP | other *** search
/ Gamer's Paradise: Logic / Hracuv-raj_Logicke-hry_cd1.bin / QUESTCAM / HATCHLIN.DIR / 00725.ls < prev    next >
Encoding:
Text File  |  1998-02-26  |  706 b   |  35 lines

  1. on ReachForTheSkies x, y
  2.   global dragonChan, whichanim, reachout
  3.   if reachout = 1 then
  4.     return 0
  5.   end if
  6.   if whichanim contains "tantrum" then
  7.     return 0
  8.   end if
  9.   if whichanim contains "crawl" then
  10.     return 0
  11.   end if
  12.   DoWantSFX()
  13.   if x > the right of sprite dragonChan then
  14.     set reachout to 1
  15.     setanim("reach r")
  16.     return 1
  17.   end if
  18.   if x < the left of sprite dragonChan then
  19.     set reachout to 1
  20.     setanim("reach l")
  21.     return 1
  22.   end if
  23.   if y > the bottom of sprite dragonChan then
  24.     set reachout to 1
  25.     setanim("reach d")
  26.     return 1
  27.   end if
  28.   if y < the top of sprite dragonChan then
  29.     set reachout to 1
  30.     setanim("reach u")
  31.     return 1
  32.   end if
  33.   return 0
  34. end
  35.