home *** CD-ROM | disk | FTP | other *** search
- global upDown, speed
-
- on beginSprite
- upDown = "Up1"
- speed = 2
- end
-
- on exitFrame me
- if upDown = "Up1" then
- sprite(2).blend = sprite(2).blend + speed
- end if
- if upDown = "Up2" then
- sprite(3).blend = sprite(3).blend + speed
- end if
- if upDown = "Down1" then
- sprite(2).blend = sprite(2).blend - speed
- end if
- if upDown = "Down2" then
- sprite(3).blend = sprite(3).blend - speed
- end if
- case upDown of
- "Up1":
- if sprite(2).blend > 99 then
- upDown = "Down1"
- end if
- "Down1":
- if sprite(2).blend < 1 then
- upDown = "Up2"
- end if
- "Up2":
- if sprite(3).blend > 99 then
- sprite(2).blend = 0
- upDown = "Down2"
- end if
- "Down2":
- if sprite(3).blend < 1 then
- upDown = "Up1"
- end if
- end case
- if the frame = 5 then
- if sprite(6).blend < 99 then
- repeat with x = 4 to 16
- if sprite(x).blend < 99 then
- sprite(x).blend = sprite(x).blend + 2
- end if
- end repeat
- else
- go(the frame + 1)
- end if
- end if
- go(the frame)
- end
-