The superclass of Game_Character. It handles basic information, such as coordinates and images, shared by all characters.
Properties:
| Name | Type | Description |
|---|---|---|
x | number | The x coordinate of the character |
y | number | The y coordinate of the character |
Methods
- Get the wait between animation frames
Returns:
Type Description number Amount to wait between animation frames - Get the blend mode of the character
Returns:
Type Description number The character's blend mode - Get the character's bush depth
Returns:
Type Description number The character's bush depth - Check if the character can pass a tile in front of them given x/y coordinates and direction
Name Type Description xnumber The x coordinate at the start of the move ynumber The y coordinate at the start of the move dnumber The direction of the move Returns:
Type Description boolean True if can pass - Check if the character can diagonally pass a tile in front of them given x/y coordinates and horizontal/vertical direction
Name Type Description xnumber The x coordinate at the start of the move ynumber The y coordinate at the start of the move horznumber The horizontal direction of the move vertnumber The vertical direction of the move Returns:
Type Description boolean True if can pass - Get the character's index (for character sheet image)
Returns:
Type Description number The character index - Get the character's name (for character sheet image)
Returns:
Type Description string The character name - Check for event trigger touch. Implemented by child classes
Returns:
Type Description boolean When called from Game_CharacterBase, this always returns false - Check for event trigger touch (in front of character)
Name Type Description dnumber The character's direction - Check if the character should stop
Name Type Description thresholdnumber The threshold after which the character should stop Returns:
Type Description boolean True if should stop - Copies the position of another character
Name Type Description characterGame_Character The character to copy position from - Get the direction of the character
Returns:
Type Description number The character direction - Get the distance moved per frame
Returns:
Type Description number The distance moved per frame - End the animation
- End the balloon animation
- Check if the character has a step animation
Returns:
Type Description boolean True if has step animation - Check if the character has a walk animation
Returns:
Type Description boolean True if has walk animation - Increase the character's steps
- Initialize character variables
- Initialize the character
- Check if the animation is playing
Returns:
Type Description boolean True if animation playing - Check if the character balloon animation is playing
Returns:
Type Description boolean True if balloon animation playing - Check if the character collided with other characters
Name Type Description xnumber The x coordinate to check ynumber The y coordinate to check Returns:
Type Description boolean True if collided - Check if the character collided with event characters
Name Type Description xnumber The x coordinate to check ynumber The y coordinate to check Returns:
Type Description boolean True if collided - Check if the character collided with vehicle characters
Name Type Description xnumber The x coordinate to check ynumber The y coordinate to check Returns:
Type Description boolean True if collided - Check if the character is dashing
Returns:
Type Description boolean True if dashing - Check if the character is in the debug through state
Returns:
Type Description boolean True if debug through - Check if the character has a fixed direction
Returns:
Type Description boolean True if has fixed direction - Check if the character is jumping
Returns:
Type Description boolean True if jumping - Check if the map is passable between two tiles
Name Type Description xnumber The x coordinate at the start of the move ynumber The y coordinate at the start of the move dnumber The direction of the move Returns:
Type Description boolean True if map is passable - Check for movement success
Returns:
Type Description boolean True if movement succeeded - Check if the character is moving
Returns:
Type Description boolean True if moving - Check if the character is near the screen
Returns:
Type Description boolean True if near the screen - Check if the character is normal priority
Returns:
Type Description boolean True if normal priority - Check if the character is an object character
Returns:
Type Description boolean True if object character - Check if the character is on a bush
Returns:
Type Description boolean True if on bush tile - Check if the character is on a ladder
Returns:
Type Description boolean True if on ladder - Check if the pattern is in the original state
Returns:
Type Description boolean True if in original state - Check if the character is stopping
Returns:
Type Description boolean True if stopping - Check if the character is through
Returns:
Type Description boolean True if through - Check if the character is a tile
Returns:
Type Description boolean True if tile - Check if the character is transparent
Returns:
Type Description boolean True if transparent - Jumps the character
Name Type Description xPlusnumber Amount to jump in the x direction yPlusnumber Amount to jump in the y direction - Get the character's jump height
Returns:
Type Description number The character's jump height - Locates the character to the given coordinates
Name Type Description xnumber The new x coordinate ynumber The new y coordinate - Get the maximum pattern for animation
Returns:
Type Description number The maximum pattern for animation - Moves diagonally in the given directions
Name Type Description horznumber The horizontal direction to move in vertnumber The vertical direction to move in - Get the move frequency of the character
Returns:
Type Description number The character's movement frequency - Get the move speed of the character
Returns:
Type Description number The character's movement speed - Moves straight in the given direction
Name Type Description dnumber The direction to move in - Get the opacity of the character
Returns:
Type Description number The character's opacity - Get the current animation pattern
Returns:
Type Description number The current animation pattern - Check if the character's position is equal to the passed coordinates
Name Type Description xnumber The x coordinate to check ynumber The y coordinate to check Returns:
Type Description boolean True if coordinates match - Check if the character's position is equal to the passed coordinates, and it's (n)ot (t)hrough
Name Type Description xnumber The x coordinate to check ynumber The y coordinate to check Returns:
Type Description boolean True if coordinates match and the character is not through - Get the real movement speed for the character (factor in dashing or other effects)
Returns:
Type Description number The actual move speed of the character - Refresh the character for bush depth change
- Get the region id the character is on
Returns:
Type Description number The region id - Resets the animation pattern
- Resets the stop count
- Reverse the character's direction
Name Type Description dnumber The direction to reverse from - Get the character screen x value
Returns:
Type Description number The screen x value - Get the character screen y value
Returns:
Type Description number The screen y value - Get the character screen z value
Returns:
Type Description number The screen z value - Get the character scrolled x value
Returns:
Type Description number The scrolled x value - Get the character scrolled y value
Returns:
Type Description number The scrolled y value - Set the blend mode of the character
Name Type Description blendModenumber The character's new blend mode - Set the direction of the character
Name Type Description dnumber The character's new direction - Set the character direction fix flag
Name Type Description directionFixboolean New direction fix flag - Set the character's image properties (character name and index)
Name Type Description characterNamestring The new character name characterIndexnumber The new character index - Set the move frequency of the character
Name Type Description moveFrequencynumber The character's new movement frequency - Set the move speed of the character
Name Type Description moveSpeednumber The character's new movement speed - Set movement success
Name Type Description successboolean Whether movement succeeded - Set the opacity of the character
Name Type Description opacitynumber The character's new opacity - Set the current animation pattern
Name Type Description patternnumber The new current animation pattern - Sets the position of the character
Name Type Description xnumber The new x coordinate ynumber The new y coordinate - Set the priority type of the character
Name Type Description priorityTypenumber The character's new priority type - Set the character step animation flag
Name Type Description stepAnimeboolean New step animation flag - Set the character through flag
Name Type Description throughboolean New through flag - Set the character's image properties when it's a tile character
Name Type Description tileIdnumber The tile id to use for the image - Set the transparent flag
Name Type Description transparentboolean New transparent flag - Set the character walk animation flag
Name Type Description walkAnimeboolean New walk animation flag - Get the amount to shift the character's y value
Returns:
Type Description number Amount to shift the y value by - Start the animation
- Start the character balloon animation
- Straighten the character
- Get the terrain tag the character is on
Returns:
Type Description number The terrain tag - Get the character's tile id
Returns:
Type Description number The character's tile id - Update the character
- Update the character's animation
- Update the animation count
- Update the character's jump
- Update the character's move
- Updates the animation pattern
- Update the character's stop