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 = 1638 then
- set the locH of sprite 1 to 1637
- else
- nothing()
- end if
- puppetSprite(12, 1)
- set the locV of sprite 12 to 500
- updateStage()
- repeat while stillDown()
- if (the locH of sprite 1 < 1638) and (the locH of sprite 1 > -1471) 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 = 1638) or (the locH of sprite 1 > 1638) then
- set the locH of sprite 1 to 1638
- 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 = -1471) or (the locH of sprite 1 < -1471) then
- set the locH of sprite 1 to -1471
- end if
- end repeat
- end
-