Class: Game_Character

(abstract) Game_Character()

(abstract) new Game_Character()

The superdeclare class of Game_Player, Game_Follower, Game_Vehicle, and Game_Event.
Properties:
Name Type Description
ROUTE_END Number [static]
ROUTE_MOVE_DOWN Number [static]
ROUTE_MOVE_LEFT Number [static]
ROUTE_MOVE_RIGHT Number [static]
ROUTE_MOVE_UP Number [static]
ROUTE_MOVE_LOWER_L Number [static]
ROUTE_MOVE_LOWER_R Number [static]
ROUTE_MOVE_UPPER_L Number [static]
ROUTE_MOVE_UPPER_R Number [static]
ROUTE_MOVE_RANDOM Number [static]
ROUTE_MOVE_TOWARD Number [static]
ROUTE_MOVE_AWAY Number [static]
ROUTE_MOVE_FORWARD Number [static]
ROUTE_MOVE_BACKWARD Number [static]
ROUTE_JUMP Number [static]
ROUTE_WAIT Number [static]
ROUTE_TURN_DOWN Number [static]
ROUTE_TURN_LEFT Number [static]
ROUTE_TURN_RIGHT Number [static]
ROUTE_TURN_UP Number [static]
ROUTE_TURN_90D_R Number [static]
ROUTE_TURN_90D_L Number [static]
ROUTE_TURN_180D Number [static]
ROUTE_TURN_90D_R_L Number [static]
ROUTE_TURN_RANDOM Number [static]
ROUTE_TURN_TOWARD Number [static]
ROUTE_TURN_AWAY Number [static]
ROUTE_SWITCH_ON Number [static]
ROUTE_SWITCH_OFF Number [static]
ROUTE_CHANGE_SPEED Number [static]
ROUTE_CHANGE_FREQ Number [static]
ROUTE_WALK_ANIME_ON Number [static]
ROUTE_WALK_ANIME_OFF Number [static]
ROUTE_STEP_ANIME_ON Number [static]
ROUTE_STEP_ANIME_OFF Number [static]
ROUTE_DIR_FIX_ON Number [static]
ROUTE_DIR_FIX_OFF Number [static]
ROUTE_THROUGH_ON Number [static]
ROUTE_THROUGH_OFF Number [static]
ROUTE_TRANSPARENT_ON Number [static]
ROUTE_TRANSPARENT_OFF Number [static]
ROUTE_CHANGE_IMAGE Number [static]
ROUTE_CHANGE_OPACITY Number [static]
ROUTE_CHANGE_BLEND_MODE Number [static]
ROUTE_PLAY_SE Number [static]
ROUTE_SCRIPT Number [static]
_moveRouteForcing Boolean
_moveRoute RPG.MoveRoute
_moveRouteIndex Number
_originalMoveRoute RPG.MoveRoute
_originalMoveRouteIndex Number
_waitCount Number

Extends

Methods

advanceMoveRouteIndex()

animationId() → {Number}

Returns the animation id.
Inherited From:
Returns:
Type
Number

animationWait() → {Number}

Inherited From:
Returns:
Type
Number

balloonId() → {Number}

Returns the id of the balloon animation.
Inherited From:
Returns:
Type
Number

blendMode() → {Number}

Returns the blend mode of the character; these are represented by numbers.
Inherited From:
Returns:
Type
Number

bushDepth() → {Number}

Returns the bush depth around the character.
Inherited From:
Returns:
Type
Number

canPass(x, y, d) → {Boolean}

Parameters:
Name Type Description
x Number
y Number
d Number
Inherited From:
Returns:
Type
Boolean

canPassDiagonally(x, y, horz, vert) → {Boolean}

Parameters:
Name Type Description
x Number
y Number
horz Number
vert Number
Inherited From:
Returns:
Type
Boolean

characterIndex() → {Number}

Inherited From:
Returns:
Type
Number

characterName() → {String}

Inherited From:
Returns:
Type
String

checkEventTriggerTouch(x, y) → {Boolean}

Parameters:
Name Type Description
x Number
y Number
Inherited From:
Returns:
Type
Boolean

checkEventTriggerTouchFront(d)

Parameters:
Name Type Description
d Number
Inherited From:

checkStop(threshold) → {Boolean}

Parameters:
Name Type Description
threshold Number
Inherited From:
Returns:
Type
Boolean

copyPosition(character)

Parameters:
Name Type Description
character Game_Player
Inherited From:

deltaXFrom(x) → {Number}

Parameters:
Name Type Description
x Number
Returns:
Type
Number

deltaYFrom(x) → {Number}

Parameters:
Name Type Description
x Number
Returns:
Type
Number

direction() → {Number}

Inherited From:
Returns:
Type
Number

distancePerFrame() → {Number}

Inherited From:
Returns:
Type
Number

endAnimation()

Inherited From:

endBalloon()

Ends the balloon animation on the character.
Inherited From:

findDirectionTo(goalX, goalY) → {Number}

Parameters:
Name Type Description
goalX Number
goalY Number
Returns:
Type
Number

forceMoveRoute(moveRoute)

Forces the move route of the game character.
Parameters:
Name Type Description
moveRoute RPG.MoveRoute

hasStepAnime() → {Boolean}

Returns true if the character has step animation.
Inherited From:
Returns:
Type
Boolean

hasWalkAnime() → {Boolean}

Inherited From:
Returns:
Type
Boolean

increaseSteps()

Increases the character steps.
Inherited From:

initialize()

Overrides:

initMembers()

Overrides:

isAnimationPlaying() → {Boolean}

Inherited From:
Returns:
Type
Boolean

isBalloonPlaying() → {Boolean}

Returns true if a balloon animation is playing.
Inherited From:
Returns:
Type
Boolean

isCollidedWithCharacters(x, y) → {Boolean}

Parameters:
Name Type Description
x Number
y Number
Inherited From:
Returns:
Type
Boolean

isCollidedWithEvents(x, y) → {Boolean}

Parameters:
Name Type Description
x Number
y Number
Inherited From:
Returns:
Type
Boolean

isCollidedWithVehicles(x, y) → {Boolean}

Parameters:
Name Type Description
x Number
y Number
Inherited From:
Returns:
Type
Boolean

isDashing() → {Boolean}

Returns true if the character is dashing.
Inherited From:
Returns:
Type
Boolean

isDebugThrough() → {Boolean}

Inherited From:
Returns:
Type
Boolean

isDirectionFixed() → {Boolean}

Returns true if the character is set to a fixed direction.
Inherited From:
Returns:
Type
Boolean

isJumping() → {Boolean}

Returns true if the character is jumping.
Inherited From:
Returns:
Type
Boolean

isMapPassable(x, y, d) → {Boolean}

Parameters:
Name Type Description
x Number
y Number
d Number
Inherited From:
Returns:
Type
Boolean

isMovementSucceeded(x, y) → {Boolean}

Parameters:
Name Type Description
x Number
y Number
Inherited From:
Returns:
Type
Boolean

isMoveRouteForcing() → {Boolean}

Returns true if the move route is being forced.
Returns:
Type
Boolean

isMoving() → {Boolean}

Returns true if the character is moving.
Inherited From:
Returns:
Type
Boolean

isNearTheScreen()

Inherited From:

isNormalPriority() → {Boolean}

Returns true if the character is normal priority; this means you can collide with them.
Inherited From:
Returns:
Type
Boolean

isObjectCharacter() → {Boolean}

Returns true if the character is an object character; these are events with character sprites.
Inherited From:
Returns:
Type
Boolean

isOnBush() → {Boolean}

Inherited From:
Returns:
Type
Boolean

isOnLadder() → {Boolean}

Inherited From:
Returns:
Type
Boolean

isOriginalPattern() → {Boolean}

Inherited From:
Returns:
Type
Boolean

isStopping() → {Boolean}

Returns true if the character is stopping.
Inherited From:
Returns:
Type
Boolean

isThrough() → {Boolean}

Returns true if the character is set to pass through.
Inherited From:
Returns:
Type
Boolean

isTile() → {Boolean}

Returns true if the character is a tile; these are events without character sprites.
Inherited From:
Returns:
Type
Boolean

isTransparent() → {Boolean}

Inherited From:
Returns:
Type
Boolean

jump(xPlus, yPlus)

Parameters:
Name Type Description
xPlus Number
yPlus Number
Inherited From:

jumpHeight() → {Number}

Returns the jump height of base character.
Inherited From:
Returns:
Type
Number

locate(x, y) → {Boolean}

Parameters:
Name Type Description
x Number
y Number
Inherited From:
Returns:
Type
Boolean

maxPattern() → {Number}

Inherited From:
Returns:
Type
Number

memorizeMoveRoute()

Memorizes the movement route.

moveAwayFromCharacter(character)

Moves the game character away from the other game character.
Parameters:
Name Type Description
character Game_Character

moveAwayFromPlayer()

Moves the game character away from the player.

moveBackward()

Moves the game character backward.

moveDiagonally(horz, vert)

Parameters:
Name Type Description
horz Number
vert Number
Inherited From:

moveForward()

Moves the game character forward.

moveFrequency() → {Number}

Returns the move frequency of the character.
Inherited From:
Returns:
Type
Number

moveRandom()

Move's the game character at random.

moveSpeed() → {Number}

Returns the move speed of the game character.
Inherited From:
Returns:
Type
Number

moveStraight(d)

Parameters:
Name Type Description
d Number
Inherited From:

moveTowardCharacter(character)

Moves the game character toward the other game character.
Parameters:
Name Type Description
character Game_Character

moveTowardPlayer()

Moves the game character toward the player.

opacity() → {Number}

Inherited From:
Returns:
Type
Number

pattern() → {Number}

Returns the pattern of the character; these are the walking
Inherited From:
Returns:
Type
Number

pos(x, y) → {Boolean}

Parameters:
Name Type Description
x Number
y Number
Inherited From:
Returns:
Type
Boolean

posNt(x, y) → {Boolean}

Parameters:
Name Type Description
x Number
y Number
Inherited From:
Returns:
Type
Boolean

processMoveCommand(command)

Processes the given move commands.
Parameters:
Name Type Description
command RPG.MoveCommand

processRouteEnd()

Handles the end of the move route.

realMoveSpeed() → {Number}

Inherited From:
Returns:
Type
Number

refreshBushDepth()

Inherited From:

regionId() → {Number}

Returns the region id of the character.
Inherited From:
Returns:
Type
Number

requestAnimation(animationId)

Requests an animation given the animation id.
Parameters:
Name Type Description
animationId Number
Inherited From:

requestBalloon(balloonId)

Requests the balloon animation given the balloon id.
Parameters:
Name Type Description
balloonId Number
Inherited From:

resetPattern()

Resets the pattern of the character.
Inherited From:

resetStopCount()

Resets the step count of the character.
Inherited From:

restoreMoveRoute()

Restores the original movement route.

reverseDir(d) → {Number}

Parameters:
Name Type Description
d Number
Inherited From:
Returns:
Type
Number

screenX() → {Number}

Returns the character's scrreen x position.
Inherited From:
Returns:
Type
Number

screenY() → {Number}

Returns the character's screen y position.
Inherited From:
Returns:
Type
Number

screenZ() → {Number}

Returns the character's screen z position.
Inherited From:
Returns:
Type
Number

scrolledX() → {Number}

Inherited From:
Returns:
Type
Number

scrolledY() → {Number}

Inherited From:
Returns:
Type
Number

searchLimit() → {Number}

Returns the search limit for path finding.
Returns:
Type
Number

setBlendMode(blendMode)

Sets the blend mode of the character; these are represented by numbers.
Parameters:
Name Type Description
blendMode Number
Inherited From:

setDirection(d)

Sets the direction of the character based on numpad directions.
Parameters:
Name Type Description
d Number
Inherited From:

setDirectionFix(directionFix)

Sets the character to be fixed in a specified direction given a boolean value.
Parameters:
Name Type Description
directionFix Boolean
Inherited From:

setImage(characterName, characterIndex)

Parameters:
Name Type Description
characterName String
characterIndex Number
Inherited From:

setMoveFrequency(moveFrequency)

Parameters:
Name Type Description
moveFrequency Number
Inherited From:

setMovementSuccess(success)

Parameters:
Name Type Description
success Boolean
Inherited From:

setMoveRoute(moveRoute)

Sets the move route of the game character.
Parameters:
Name Type Description
moveRoute RPG.MoveRoute

setMoveSpeed(moveSpeed)

Parameters:
Name Type Description
moveSpeed Number
Inherited From:

setOpacity(opacity)

Parameters:
Name Type Description
opacity Number
Inherited From:

setPattern(pattern)

Sets the pattern of the character, given a pattern number.
Parameters:
Name Type Description
pattern Number
Inherited From:

setPosition(x, y)

Parameters:
Name Type Description
x Number
y Number
Inherited From:

setPriorityType(priorityType)

Parameters:
Name Type Description
priorityType Number
Inherited From:

setStepAnime(stepAnime)

Parameters:
Name Type Description
stepAnime Boolean
Inherited From:

setThrough(through)

Parameters:
Name Type Description
through Boolean
Inherited From:

setTileImage(tileId)

Parameters:
Name Type Description
tileId Number
Inherited From:

setTransparent(transparent)

Parameters:
Name Type Description
transparent Boolean
Inherited From:

setWalkAnime(walkAnime)

Parameters:
Name Type Description
walkAnime Boolean
Inherited From:

shiftY() → {Number}

Inherited From:
Returns:
Type
Number

startAnimation()

Starts the requested animation.
Inherited From:

startBalloon()

Stars a balloon animation.
Inherited From:

straighten()

Straightens the character.
Inherited From:

swap(character)

Parameters:
Name Type Description
character Game_Character

terrainTag() → {Number}

Returns the terrain tag of the character.
Inherited From:
Returns:
Type
Number

tileId() → {Number}

Returns the tile id of character.
Inherited From:
Returns:
Type
Number

turn180()

Turns the game character by 180 degrees.

turnAwayFromCharacter(character)

Turns the game character away from the other game character.
Parameters:
Name Type Description
character Game_Character

turnAwayFromPlayer()

Turns the game character away from the player.

turnLeft90()

Turns the game character left by 90 degrees.

turnRandom()

Turns the game character at random.

turnRight90()

Turns the game character right by 90 degrees.

turnRightOrLeft90()

Turns the game character or left by 90 degrees.

turnTowardCharacter(character)

Turns the game character toward the other game character.
Parameters:
Name Type Description
character Game_Character

turnTowardPlayer()

Turns the game character toward the player.

update()

Inherited From:

updateAnimation()

Inherited From:

updateAnimationCount()

Updates the character's animation count.
Inherited From:

updateJump()

Inherited From:

updateMove()

Inherited From:

updatePattern()

Inherited From:

updateRoutineMove()

Updates the game character's move routine.

updateStop()

Overrides: