home *** CD-ROM | disk | FTP | other *** search
- property ancestor, spr, curText, castList, languageTimer
-
- on new me, s, inRate
- set the ancestor of me to new(script "BlinkTextObj", s, inRate)
- set spr to s
- set c to the number of member "ShootText"
- set castList to [c, c + 1, c + 2]
- set curText to 1
- set languageRate to 5
- puppetSprite(spr, 1)
- return me
- end
-
- on play me
- if languageTimer > 0 then
- if the blinkTimer of me = 1 then
- set languageTimer to languageTimer - 1
- end if
- else
- if not (the visible of sprite the spr of me) then
- set languageTimer to 5
- SetText(me)
- end if
- end if
- play(ancestor)
- end
-
- on SetText me, inString
- if curText = 3 then
- set curText to 1
- else
- set curText to curText + 1
- end if
- set the memberNum of sprite spr to getAt(castList, curText)
- end
-
- on Dispose
- puppetSprite(spr, 0)
- set the visible of sprite spr to 1
- end
-