home *** CD-ROM | disk | FTP | other *** search
- on mouseDown
- global MoveAmount, WhichDirection
- repeat while the stillDown
- set the locV of sprite 20 to the mouseV
- if the locV of sprite 20 <= 211 then
- set the locV of sprite 20 to 206
- updateStage()
- set MoveAmount to 40
- set WhichDirection to "up"
- end if
- if (the locV of sprite 20 > 211) and (the locV of sprite 20 <= 222) then
- set the locV of sprite 20 to 217
- updateStage()
- set MoveAmount to 15
- set WhichDirection to "up"
- end if
- if (the locV of sprite 20 > 222) and (the locV of sprite 20 <= 233) then
- set the locV of sprite 20 to 228
- updateStage()
- set MoveAmount to 7
- set WhichDirection to "up"
- end if
- if (the locV of sprite 20 > 233) and (the locV of sprite 20 <= 244) then
- set the locV of sprite 20 to 239
- updateStage()
- set MoveAmount to 3
- set WhichDirection to "up"
- end if
- if (the locV of sprite 20 > 244) and (the locV of sprite 20 <= 255) then
- set the locV of sprite 20 to 250
- updateStage()
- set MoveAmount to 1
- set WhichDirection to "up"
- end if
- if (the locV of sprite 20 > 255) and (the locV of sprite 20 <= 266) then
- set the locV of sprite 20 to 261
- updateStage()
- set MoveAmount to 1
- set WhichDirection to "pause"
- end if
- if (the locV of sprite 20 > 266) and (the locV of sprite 20 <= 277) then
- set the locV of sprite 20 to 272
- updateStage()
- set MoveAmount to 1
- set WhichDirection to "Down"
- end if
- if (the locV of sprite 20 > 277) and (the locV of sprite 20 <= 288) then
- set the locV of sprite 20 to 283
- updateStage()
- set MoveAmount to 3
- set WhichDirection to "Down"
- end if
- if (the locV of sprite 20 > 288) and (the locV of sprite 20 <= 299) then
- set the locV of sprite 20 to 294
- updateStage()
- set MoveAmount to 7
- set WhichDirection to "Down"
- end if
- if (the locV of sprite 20 > 299) and (the locV of sprite 20 <= 310) then
- set the locV of sprite 20 to 305
- updateStage()
- set MoveAmount to 15
- set WhichDirection to "Down"
- end if
- if the locV of sprite 20 > 310 then
- set the locV of sprite 20 to 316
- updateStage()
- set MoveAmount to 40
- set WhichDirection to "Down"
- end if
- if WhichDirection = "Down" then
- if the bottom of sprite 10 <= 213 then
- set the locV of sprite 10 to -378
- set WhichDirection to "Pause"
- set the locV of sprite 20 to 261
- else
- set the locV of sprite 10 to the locV of sprite 10 - MoveAmount
- end if
- end if
- if WhichDirection = "Up" then
- if the top of sprite 10 >= 102 then
- set the locV of sprite 10 to 102
- set WhichDirection to "Pause"
- set the locV of sprite 20 to 261
- else
- set the locV of sprite 10 to the locV of sprite 10 + MoveAmount
- end if
- end if
- if WhichDirection = "Pause" then
- nothing()
- end if
- end repeat
- end
-