home *** CD-ROM | disk | FTP | other *** search
- on dragsprite
- puppetSprite(clickOn(), 1)
- set mh to mouseH() - the locH of sprite clickOn()
- if the locH of sprite 1 = 1314 then
- set the locH of sprite 1 to 1313
- else
- nothing()
- end if
- repeat while stillDown()
- if (the locH of sprite 1 < 1314) and (the locH of sprite 1 > -1151) then
- set the castNum of sprite 5 to the number of cast "bow"
- set the locH of sprite clickOn() to mouseH() - mh
- updateStage()
- next repeat
- end if
- if (the locH of sprite 1 = 1314) or (the locH of sprite 1 > 1314) then
- set the locH of sprite 1 to 1314
- puppetSprite(5, 1)
- set the castNum of sprite 5 to the number of cast "bowb"
- next repeat
- end if
- if (the locH of sprite 1 = -1151) or (the locH of sprite 1 < -1151) then
- set the locH of sprite 1 to -1151
- end if
- end repeat
- end
-