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.

Subclasses: ChoiceNarrator, Talker.

Properties

Inherited from Prop:

Property Description
x  
y  
z  
heading  
noun  
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  

Defined in Narrator:

Property Description
_case  
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)