DialogueCharacter
| Kind | class |
| Package | objects |
| Full name | objects.DialogueCharacter |
| Source | source/objects/DialogueBoxPsych.hx |
| Extends | FlxSprite |
Public fields
| Name | Type | Static | Default | Notes |
|---|---|---|---|---|
DEFAULT_CHARACTER | String | yes | 'bf' | — |
DEFAULT_SCALE | Float | yes | 0.7 | — |
jsonFile | DialogueCharacterFile | no | null | — |
dialogueAnimations | Map<String, DialogueAnimArray> | no | new Map() | — |
startingPos | Float | no | 0 | — |
isGhost | Bool | no | false | — |
curCharacter | String | no | 'bf' | — |
skiptimer | — | no | 0 | — |
skipping | — | no | 0 | — |
Public methods
new (constructor)
function new(x:Float = 0, y:Float = 0, character:String = null)
| Parameter | Type | Default |
|---|---|---|
x (optional) | Float | 0 |
y (optional) | Float | 0 |
character (optional) | String | null |
reloadCharacterJson
function reloadCharacterJson(character:String)
| Parameter | Type | Default |
|---|---|---|
character | String | — |
reloadAnimations
function reloadAnimations()
playAnim
function playAnim(animName:String = null, playIdle:Bool = false)
| Parameter | Type | Default |
|---|---|---|
animName (optional) | String | null |
playIdle (optional) | Bool | false |
animationIsLoop
function animationIsLoop():Bool
Internals
Private / internal members
| Field | Type | Static |
|---|---|---|
IDLE_SUFFIX | String | yes |