Skip to content
mpetrovic edited this page Apr 15, 2011 · 2 revisions

Component

Contains every item needed for a single line in a scene

Properties:

  • speaker -- reference to Character
  • type -- the type of action going on. can be camera, animation, or dialog
  • dialog_type -- text bubble or text screen
  • line -- the words said, or another action to run. or perhaps a callback that will do something
  • trigger_next -- what triggers the next scene line. see Trigger section
  • sound -- if this is a dialog, we can add voice acting here. getting ahead of myself here though.
Methods:
  • play -- runs the line.
  • end -- ends anything running in the line
Triggers:
  • user -- the next line is triggered by the user's button press
  • event -- event is a string delimited by | which includes the event, the target and a value to aim for. for instance, 'event|health|boss|50' would trigger the line when the boss's health reached 50%.
  • finished -- when the line's animation or sound is done, it proceeds to the next
Clone this wiki locally