home *** CD-ROM | disk | FTP | other *** search
- property fish, spriteNum, ogLoc, mot, pAng, dir
-
- on beginSprite me
- fish = sprite(spriteNum)
- ogLoc = fish.locH
- mot = timeout(string(spriteNum)).new(50, #moving, me)
- pAng = 0
- dir = 10
- end
-
- on moving me
- if fish.locH < 800 then
- fish.locH = fish.locH + 1
- else
- fish.locH = ogLoc
- end if
- pAng = pAng + dir
- fish.locV = float(fish.locV) + (sin(pAng * PI / 180) * 5)
- end
-