home *** CD-ROM | disk | FTP | other *** search
- property pbird, spriteNum
-
- on beginSprite me
- pbird = sprite(spriteNum)
- end
-
- on enterFrame me
- if pbird.flipH then
- pbird.locH = pbird.locH + 1
- if pbird.locH > ((the stage).rect.width + 30) then
- pbird.flipH = not pbird.flipH
- pbird.locV = random(70)
- end if
- else
- if not pbird.flipH then
- pbird.locH = pbird.locH - 1
- if pbird.locH < -30 then
- pbird.flipH = not pbird.flipH
- pbird.locV = random(70)
- end if
- end if
- end if
- end
-