Narrator (of Prop)

class Narrator

Defined in Talker.sc.

Narrator is responsible for displaying messages and message sequences, and controlling the look of the text dialogs. A default Narrator (templateNarrator in main.sc) is defined as part of the template game, but you can create your own Narrator instances to define different text styles or colors for messages.

If you add a new Narrator instance, you must assign it some talker number, and then add code in the findTalker method of testMessage in Main.sc to direct that talker number to the right script and export.

See Talkers and Narrators for more information Talkers.

Subclasses: Talker, ChoiceNarrator.

class diagram

Properties

Inherited from Prop:

Property Description
x -1 means center
y -1 means center
z  
heading  
noun  
case  
modNum  
nsTop  
nsLeft  
nsBottom  
nsRight  
sightAngle  
actions  
onMeCheck  
state  
approachX  
approachY  
approachDist  
_approachVerbs  
yStep  
view  
loop  
cel  
priority  
underBits  
signal  
lsTop  
lsLeft  
lsBottom  
lsRight  
brTop  
brLeft  
brBottom  
brRight  
scaleSignal  
scaleX  
scaleY  
maxScale  
cycleSpeed  
script  
cycler  
timer  
detailLevel  
scaler  
name  

Defined in Narrator:

Property Description
caller  
disposeWhenDone  
ticks  
talkWidth  
keepWindow  
modeless  
font  
cueVal  
initialized  
showTitle  
color  
back  
curVolume  
saveCursor  

Methods

init()
doit()
dispose(theDisposeWhenDone)
handleEvent(pEvent)
say(buffer theCaller)
startText(buffer)
display(theText)
startAudio(buffer)