home *** CD-ROM | disk | FTP | other *** search
- on mouseDown
- set the castNum of sprite 45 to 102
- updateStage()
- puppetSound(2, 302)
- repeat while the stillDown
- set mymouseh to the mouseH
- set mymousev to the mouseV
- set oldLocV2 to the locV of sprite 24
- set oldLocV to the locV of sprite 21
- set the locV of sprite 21 to oldLocV + (2 * (the mouseV - mymousev))
- updateStage()
- if the locV of sprite 21 <> oldLocV then
- set the locV of sprite 24 to oldLocV2 + (2 * (mymousev - the mouseV))
- end if
- set the locH of sprite 45 to mymouseh
- set the locV of sprite 45 to mymousev
- updateStage()
- end repeat
- puppetSound(2, 0)
- if (the castNum of sprite 12 = 129) and (the locV of sprite 21 = 226) then
- set the constraint of sprite 10 to 0
- set the constraint of sprite 21 to 0
- set the constraint of sprite 17 to 0
- set the constraint of sprite 24 to 0
- set the constraint of sprite 19 to 0
- puppetSprite(12, 0)
- puppetSprite(10, 0)
- puppetSprite(24, 0)
- puppetSprite(21, 0)
- puppetSprite(17, 0)
- puppetSprite(19, 0)
- puppetSprite(40, 0)
- go("hooked")
- end if
- end
-