home *** CD-ROM | disk | FTP | other *** search
- on wintest
- puppetSprite(48, 0)
- go("done")
- set the foreColor of sprite 41 to 255
- set the backColor of sprite 41 to 0
- set name to word 1 of the name of cast the castNum of sprite 41
- if (the locH of sprite 41 < 100) or (the locH of sprite 41 > 300) then
- set dh to 1
- else
- if (the locH of sprite 41 > 150) and (the locH of sprite 41 < 250) then
- set dh to 1
- else
- set dh to 2
- end if
- end if
- if the locH of sprite 41 < 210 then
- repeat while the locH of sprite 41 < 210
- set the castNum of sprite 41 to the number of cast (name && "stepRight1")
- updateStage()
- wait(20)
- set the castNum of sprite 41 to the number of cast (name && "stepRight2")
- set the locV of sprite 41 to the locV of sprite 41 - dh
- set the locH of sprite 41 to the locH of sprite 41 + 12
- updateStage()
- wait(20)
- end repeat
- else
- repeat while the locH of sprite 41 > 220
- set the castNum of sprite 41 to the number of cast (name && "stepLeft1")
- updateStage()
- wait(20)
- set the castNum of sprite 41 to the number of cast (name && "stepLeft2")
- set the locV of sprite 41 to the locV of sprite 41 - dh
- set the locH of sprite 41 to the locH of sprite 41 - 12
- updateStage()
- wait(20)
- end repeat
- end if
- set the castNum of sprite 41 to the number of cast (name && "done")
- updateStage()
- put the locV of sprite 41
- set the locH of sprite 39 to the locH of sprite 41
- set the locV of sprite 39 to the locV of sprite 41
- set the stretch of sprite 39 to 0
- updateStage()
- put the locV of sprite 39
- cursor(0)
- end
-
- on wait w
- set t to the ticks
- repeat while the ticks < (t + w)
- end repeat
- end
-
- on ruby
- puppetSprite(39, 1)
- if the foreColor of sprite 39 = 36 then
- set the foreColor of sprite 39 to 0
- else
- set the foreColor of sprite 39 to the foreColor of sprite 39 + 1
- end if
- updateStage()
- end
-