home *** CD-ROM | disk | FTP | other *** search
- on mouseDown
- set spriteNum to the clickOn
- set dh to the locH of the clickLoc - the locH of sprite spriteNum
- set dv to the locV of the clickLoc - the locV of sprite spriteNum
- repeat while the stillDown
- set the locH of sprite spriteNum to the mouseH - dh
- set the locV of sprite spriteNum to the mouseV - dv
- updateStage()
- end repeat
- if sprite spriteNum intersects (spriteNum - 6) and (the visible of sprite (spriteNum - 6) = 1) then
- set the visible of sprite spriteNum to 0
- set the visible of sprite (spriteNum - 6) to 0
- puppetSound("right")
- updateStage()
- else
- puppetSound("wrong")
- end if
- if hSolved() then
- hPlayAnimation()
- end if
- end
-
- on hSolved
- repeat with spriteNum = 16 to 20
- if the visible of sprite spriteNum = 1 then
- return 0
- end if
- end repeat
- return 1
- end
-