home *** CD-ROM | disk | FTP | other *** search
- on shipIntoWater
- global skepp, hv, rightShip, leftShip, skeppSlump
- repeat with i = 1 to 4
- if not getAt(skepp, i) then
- set startSkepp to random(1000)
- if startSkepp > skeppSlump then
- setAt(skepp, i, 1)
- set riktning to random(2)
- case riktning of
- 1:
- setAt(hv, i, 1)
- set the locH of sprite ((i * 3) + 2) to -40
- set the memberNum of sprite ((i * 3) + 2) to getAt(rightShip, i)
- 2:
- setAt(hv, i, -1)
- set the locH of sprite ((i * 3) + 2) to 680
- set the memberNum of sprite ((i * 3) + 2) to getAt(leftShip, i)
- end case
- end if
- end if
- end repeat
- end
-