Follower
┗> Character > Object > Class
Followers are a type of Overworld character that follow the player's movements.
Constructor
Follower(chara: number, x: number, y: number, target: any)
Arguments:
| chara: number | |
| x: number | |
| y: number | |
| target: any |
Methods
Follower:getFollowDelay()
Gets the delay in seconds this follower will follow its target's position, taking into account the delay of followers in front of itself.
Returns:
| 1: unknown |
Follower:getTargetPosition()
Returns:
| 1: unknown | |
| 2: unknown | |
| 3: "down"|"left"|"right"|"up" | |
| 4: unknown | |
| 5: unknown |
Follower:interpolateHistory()
Adds this follower's current position to their movement history.
Follower:onAdd(parent: Object)
Arguments:
| parent: Object | The base class of all objects in Kristal. |
Follower:onRemove(parent: Object)
Arguments:
| parent: Object | The base class of all objects in Kristal. |