Constructor


Player(chara: any, x: any, y: any)

Arguments:

chara: any
x: any
y: any




Methods


Player:alignFollowers(facing: string?, x: number?, y: number?, dist: number?)

Aligns the player's followers' directions and positions.

@param facing — The direction every character should face (Defaults to player's direction)

@param x — The x-coordinate of the 'front' of the line. (Defaults to player's x-position)

@param y — The y-coordinate of the 'front' of the line. (Defaults to player's y-position)

@param dist — The distance between each follower.

Arguments:

facing: string?

The direction every character should face (Defaults to player's direction)

x: number?

The x-coordinate of the 'front' of the line. (Defaults to player's x-position)

y: number?

The y-coordinate of the 'front' of the line. (Defaults to player's y-position)

dist: number?

The distance between each follower.



Player:beginSlide(last_state: any, in_place: any, lock_movement: any)

Arguments:

last_state: any
in_place: any
lock_movement: any




Player:endSlide(next_state: any)

Arguments:

next_state: any




Player:getDebugOptions(context: any)

Arguments:

context: any

Returns:

1: unknown






Player:interpolateFollowers()

Adds all followers' current positions to their movement history.









Player:onAdd(parent: any)

Arguments:

parent: any


Player:onRemove(parent: any)

Arguments:

parent: any


Player:onRemoveFromStage(stage: any)

Arguments:

stage: any




Player:setActor(actor: any)

Arguments:

actor: any


Player:setState(state: any, : unknown)

Arguments:

state: any
: unknown













Fields



Undocumented