home *** CD-ROM | disk | FTP | other *** search
- --property PmyHotSpotList, PtheToy, PmyProxy, PmyCredits, PtheMallet, PtheRock, Pgirl1, Pgirl2, Pgirl3, PmyTotal, PmySounds, ParcadeFlag, PmySound, PtheBag, PtheFlower, PtheCandy, PtheCard
- --
- --global GvidSprite, GnavOb, GpreSets, GscreenObject, GsexOb
- --
- --
- --on new me
- --
- -- set PmyHotSpotList = [:]
- -- set hotSpot = new(script "constantHotSpot", 4, 11, 0, 151)
- -- addProp PmyHotSpotList, 4, hotSpot
- -- set hotSpot = new(script "constantHotSpot", 5, 21, 0, 203)
- -- addProp PmyHotSpotList, 5, hotSpot
- -- set hotSpot = new(script "constantHotSpot", 6, 31, 0, 250)
- -- addProp PmyHotSpotList, 6, hotSpot
- -- set hotSpot = new(script "constantHotSpot", 7, 41, 74, 455)
- -- addProp PmyHotSpotList, 7, hotSpot
- -- set hotSpot = new(script "constantHotSpot", 8, 51, 75, 515)
- -- addProp PmyHotSpotList, 8, hotSpot
- -- set hotSpot = new(script "constantHotSpot", 9, 61, 76, 598)
- -- addProp PmyHotSpotList, 9, hotSpot
- -- set hotSpot = new(script "helpObj", 34,35)
- -- addProp PmyHotSpotList, 34, hotSpot
- --
- -- set PtheRock = getat(GpreSets,1)
- -- set PtheMallet = getat(GpreSets,2)
- -- set PmyCredits = getat(GpreSets,3)
- -- set PtheToy = getat(GpreSets,7)
- -- set PmyProxy = 0
- -- set PtheBag = 0
- -- set PtheFlower = 0
- -- set PtheCandy = 0
- -- set PtheCard = 0
- --
- -- set Pmygirl1 = 0
- -- set Pmygirl2 = 0
- -- set Pmygirl3 = 0
- -- set PmyTotal = 0
- -- set ParcadeFlag = 1
- -- set PmySound = 1
- --
- -- puppetsprite 12, 1
- --
- -- set PmySounds = [#n32n: "vo10.aiff", #n13s: "vo11.aiff"]
- --
- -- return me
- --
- --end
- --
- --
- --on update me
- --
- -- if PtheRock then addCard me, 43, 151, 153, 77 -- "rock"
- -- if PtheMallet then addCard me, 41, 171, 280, 79 -- "hammer"
- -- if PtheToy then addCard me, 40, 181, 353, 80 -- "toys"
- --
- -- if getat(GpreSets, 4) then
- -- addCard me, 42, 161, 218, 78 -- "flower"
- -- addCard me, 47, 261, 443, 0
- -- end if
- -- if getat(GpreSets, 5) then
- -- addCard me, 46, 251, 350, 0
- -- addCard me, 37, 211, 553, 0
- -- end if
- -- if getat(GpreSets, 6) then
- -- addCard GscreenObject, 39, 191, 409, 81 -- "candy"
- -- addCard GscreenObject, 48, 271, 535, 0
- -- end if
- -- if getat(GpreSets, 10) then
- -- addCard GscreenObject, 44, 231, 172, 0
- -- set PtheCard = 1
- -- end if
- --
- --end
- --
- --
- --on move me
- -- repeat with x = 1 to count(PmyHotSpotList)
- -- move getat(PmyHotSpotList,x)
- -- end repeat
- -- updatestage
- --end
- --
- --
- --on addCard me, whichSprite, whichCell, whichLocH, whichHandler
- --
- -- set hotSpot = new(script "addHotSpot", whichSprite, whichCell, whichLocH, whichHandler)
- -- SetaProp PmyHotSpotList, whichSprite, hotSpot
- --
- --end
- --
- --
- --on moveCards me, whichDir
- --
- -- if whichDir > 0 then
- -- repeat with x = 37 to 43
- -- if not voidP(getaprop(PmyHotSpotList,x)) then moveOff getaprop(PmyHotSpotList,x)
- -- end repeat
- --
- -- repeat with x = 44 to 48
- -- if not voidP(getaprop(PmyHotSpotList,x)) then moveOn getaprop(PmyHotSpotList,x)
- -- end repeat
- --
- -- else
- --
- -- repeat with x = 37 to 43
- -- if not voidP(getaprop(PmyHotSpotList,x)) then moveOn getaprop(PmyHotSpotList,x)
- -- end repeat
- --
- -- repeat with x = 44 to 48
- -- if not voidP(getaprop(PmyHotSpotList,x)) then moveOff getaprop(PmyHotSpotList,x)
- -- end repeat
- -- end if
- --
- --end
- --
- --
- --on killCards me
- -- repeat with x = 4 to 9
- -- disappear getaprop(PmyHotSpotList,x)
- -- end repeat
- --
- -- repeat with x = 37 to 48
- -- if not voidP(getaprop(PmyHotSpotList,x)) then moveOff getaprop(PmyHotSpotList,x)
- -- end repeat
- --end
- --
- --on checkGame me
- -- -- if (Pgirl1 + Pgirl2 + Pgirl3) = 3 then
- -- -- goThing "dep"
- -- -- end if
- -- set PmyTotal = Pgirl1 + Pgirl2 + Pgirl3
- --end
- --
- --on changeHelp me
- -- deleteProp PmyHotSpotList, 34
- --end
- --
- --on changeHelpBack me
- -- -- set the ink of sprite 12 = 1
- -- -- set the locv of sprite 12 = 428
- -- -- deleteProp PmyHotSpotList, 3
- -- set hotSpot = new(script "helpObj", 34,35)
- -- addProp PmyHotSpotList, 34, hotSpot
- --end
- --
- --on revive me
- -- repeat with x = 4 to 9
- -- appear getaprop(PmyHotSpotList,x)
- -- end repeat
- -- moveCards me
- --end repeat