home *** CD-ROM | disk | FTP | other *** search
- property cloud, spriteNum, location, direction, moveme
-
- on beginSprite me
- cloud = sprite(spriteNum)
- location = cloud.locV
- direction = 1
- moveme = timeout("tbol").new(100, #goe, me)
- end
-
- on goe me
- location = cloud.locV
- if (location > (0 - (cloud.height / 2))) and (location < (the stageBottom - the stageTop + (cloud.height / 2))) then
- cloud.locV = location + direction
- else
- direction = direction * -1
- cloud.locV = location + direction
- cloud.flipV = not cloud.flipV
- end if
- end
-