Creates a new Character instance.
The character's name
Optionalimage: stringOptional image/sprite URL for the character
InternalSets the current scene for this character.
This is called automatically when a character is added to a scene via scene.add().
It enables the character to queue actions in that scene.
The scene to associate with this character, or null to disassociate
Gets the character's image/sprite URL.
The character's image URL, if set
Sets the character's image/sprite URL. If the character is in a scene, this queues an action to update the displayed image.
The image URL to set
Gets the character's name.
The character's name
Sets the character's position.
The position to set
Queues dialogue for the character to speak.
The dialogue text
Optionaloptions: DialogueOptionsOptional dialogue options
Options for dialogue display.
Optionaleffect?: "fade" | "typewriter"Text effect to apply
Represents a character in the visual novel.
Characters are the primary actors in a visual novel. They can speak dialogue, be shown or hidden on screen, and have their appearance changed dynamically.
Characters must be added to a scene before they can perform actions like speaking dialogue or being shown/hidden.
Character
Example