Methods
Player:alignFollowers(facing: string?, x: number?, y: number?, dist: number?)
Aligns the player's followers' directions and positions.
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:interpolateFollowers()
Adds all followers' current positions to their movement history.
Player:onAdd(parent: World)
Arguments:
| parent: World | The |
Player:onRemove(parent: World)
Arguments:
| parent: World | The |
Player:onRemoveFromStage(stage: Object)
Arguments:
| stage: Object | The base class of all objects in Kristal. |
Undocumented
Player.slide_sound: Sound
The sound class. This is a transparent wrapper over Love2D's Source.