home *** CD-ROM | disk | FTP | other *** search
- property pSprite, spriteNum, pSpeed, plast, inty, ass, rolla, unda, freak
- global gFloats, gCurrentFloat
-
- on beginSprite me
- pSprite = sprite(spriteNum)
- pSprite.bgColor = rgb(177, 232, 240)
- pSprite.ink = 36
- pSpeed = 0
- inty = 0
- ass = 200.random + 100
- plast = the ticks
- timeout("turtle" && spriteNum).new(25, #moveturtle, me)
- end
-
- on moveturtle me
- pSprite.locH = pSprite.locH + pSpeed
- if pSprite.flipH then
- theBoundary = 580
- if (pSprite.locH + (pSprite.width / 2)) >= theBoundary then
- pSprite.flipH = not pSprite.flipH
- pSpeed = -pSpeed
- end if
- else
- if not pSprite.flipH then
- theBoundary = 0
- if (pSprite.locH - (pSprite.width / 2)) <= theBoundary then
- pSprite.flipH = not pSprite.flipH
- pSpeed = -pSpeed
- end if
- end if
- end if
- end
-
- on exitFrame me
- if pSprite <> gCurrentFloat then
- if rolla then
- if not isFrogOn2(pSprite) then
- if the ticks > (plast + freak) then
- if not inty then
- pSprite.member = member("diveturtle")
- inty = 1
- else
- if (the ticks > (plast + freak + 10)) and (the ticks < (plast + freak + ass)) then
- pSprite.member = member("underturtle")
- unda = 1
- pSprite.bgColor = rgb(255, 255, 255)
- else
- if the ticks > (plast + freak + ass) then
- unda = 0
- if the ticks < (plast + freak + ass + 10) then
- pSprite.bgColor = rgb(177, 232, 240)
- pSprite.member = member("diveturtle")
- else
- pSprite.member = member(5, "the graffic")
- pSprite.bgColor = rgb(177, 232, 240)
- plast = the ticks
- inty = 0
- end if
- end if
- end if
- end if
- end if
- end if
- end if
- end if
- end
-