home *** CD-ROM | disk | FTP | other *** search
- property MySprite, MyMem, MyLocH, MyLocV, MyLocZ
- global LocList
-
- on new me, spr, Mem, x, y, z
- MySprite = spr
- sprite(MySprite).puppet = 1
- MyMem = Mem
- MyLocH = x
- MyLocV = y
- MyLocZ = z
- Init(me)
- return me
- end
-
- on Init me
- global UserLookH, UserLookV
- MyX = 320
- MyY = MyLocV - UserLookV + 320
- sprite(MySprite).member = MyMem
- sprite(MySprite).locZ = MyLocZ
- sprite(MySprite).loc = point(MyX, MyY)
- sprite(MySprite).visible = 1
- end
-
- on Update me
- global UserLookH, UserLookV
- MyX = 320
- MyY = MyLocV - UserLookV + 320
- sprite(MySprite).member = MyMem
- sprite(MySprite).locZ = MyLocZ
- sprite(MySprite).loc = point(MyX, MyY)
- end
-