home *** CD-ROM | disk | FTP | other *** search
- property pSprite, pShowCast, pHideCast, pRevCast, pHomeV, pHomeH, pHideTile, pHideState
-
- on birth me, theSprite, theCast, theHideCast, theRevCast
- set pShowCast to theCast
- set pHideCast to theHideCast
- set pRevCast to theRevCast
- set pSprite to theSprite
- puppetSprite(pSprite, 1)
- set the castNum of sprite pSprite to pHideCast
- return me
- end
-
- on getTile me
- return pShowCast
- end
-
- on setHomePos me, theHPos, theVPos
- set pHomeV to theVPos
- set pHomeH to theHPos
- end
-
- on getHomeHPos me
- return pHomeH
- end
-
- on getHomeVPos me
- return pHomeV
- end
-
- on tstHome me
- set vCurrent to the locV of sprite pSprite
- set hCurrent to the locH of sprite pSprite
- set hHome to pHomeH
- set vHome to pHomeV
- if (vCurrent = vHome) and (hCurrent = hHome) then
- return 1
- else
- return 0
- end if
- end
-
- on getSprite me
- return pSprite
- end
-
- on show me
- set the castNum of sprite pSprite to pShowCast
- end
-
- on hide me
- set the castNum of sprite pSprite to pHideCast
- end
-
- on reveal me
- set the locH of sprite pSprite to -200
- set the locV of sprite pSprite to -200
- end
-