Methods
Actor:onSetAnimation(sprite: any, anim: any, callback: any)
Arguments:
sprite: any | |
anim: any | |
callback: any |
Actor:onSetSprite(sprite: any, texture: any, keep_anim: any)
Arguments:
sprite: any | |
texture: any | |
keep_anim: any |
Actor:parseSpriteOptions(full_sprite: any, ignore_frames: any)
horrific
Arguments:
full_sprite: any | |
ignore_frames: any |
Returns:
1: table |
Actor:preSetAnimation(sprite: any, anim: any, callback: any)
Arguments:
sprite: any | |
anim: any | |
callback: any |
Actor:preSetSprite(sprite: any, texture: any, keep_anim: any)
Arguments:
sprite: any | |
texture: any | |
keep_anim: any |
Fields
Undocumented
Actor.animations: table
Table of sprite animations
Actor.can_blush: boolean
Whether this actor as a follower will blush when close to the player
Actor.color: table
Color for this actor used in outline areas (optional, defaults to red)
Actor.default: string
This actor's default sprite or animation, relative to the path (defaults to "")
Actor.flip: nil
Whether this actor flips horizontally (optional, values are "right" or "left", indicating the flip direction)
Actor.flip_sprites: table
Table of sprites that have a unique flip value, if self.flip is not set
Actor.hitbox: nil
Hitbox for this actor in the overworld (optional, uses width and height by default)
Actor.indent_string: nil
Indent style for the actor (optional)
Actor.mirror_sprites: table
Tables of sprites to change into in mirrors
Actor.name: nil
Display name (optional)
Actor.offsets: table
Table of sprite offsets (indexed by sprite name)
Actor.path: string
Path to this actor's sprites (defaults to "")
Actor.portrait_offset: nil
Offset position for this actor's portrait (optional)
Actor.portrait_path: nil
Path to this actor's portrait for dialogue (optional)
Actor.soul_offset: table
A table that defines where the Soul should be placed on this actor if they are a player. First value is x, second value is y.
Actor.talk_sprites: table
Table of talk sprites and their talk speeds (default 0.25)
Actor.voice: nil
Sound to play when this actor speaks (optional)
Actor.width: integer
Width and height for this actor, used to determine its center