このページをGitHubで編集する

Class: Game_Character

Extends: Game_CharacterBase

new Game_Character ()

データベース JSON データ オブジェクト スプライト
[イベント] RPG.Event Game_Event Sprite_Character
[プレイヤー] RPG.Actor Game_Player
[フォロワー] Game_Follower
[乗り物] RPG.System.Vehicle Game_Vehicle

マップに表示されるキャラ用のクラス。

関連クラス: Game_Interpreter, Game_Actor

Sub Classes

Properties:

ROUTE_ から始まる定数は、[移動ルートの設定]の[移動コマンド]に対応している。

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] [右に 90 度回転]
ROUTE_TURN_90D_L Number [static] [左に 90 度回転]
ROUTE_TURN_180D Number [static] [180 度回転]
ROUTE_TURN_90D_R_L Number [static] [右か左に 90 度回転]
ROUTE_TURN_RANDOM Number [static] [ランダムに方向転換]
ROUTE_TURN_TOWARD Number [static] [プレイヤーの方を向く]
ROUTE_TURN_AWAY Number [static] [プレイヤーの逆を向く]
ROUTE_SWITCH_ON Number [static] [スイッチ ON]
ROUTE_SWITCH_OFF Number [static] [スイッチ OFF]
ROUTE_CHANGE_SPEED Number [static] [移動速度の変更]
ROUTE_CHANGE_FREQ Number [static] [移動頻度の変更]
ROUTE_WALK_ANIME_ON Number [static] [歩行アニメ ON]
ROUTE_WALK_ANIME_OFF Number [static] [歩行アニメ OFF]
ROUTE_STEP_ANIME_ON Number [static] [足踏みアニメ ON]
ROUTE_STEP_ANIME_OFF Number [static] [足踏みアニメ OFF]
ROUTE_DIR_FIX_ON Number [static] [向き固定 ON]
ROUTE_DIR_FIX_OFF Number [static] [向き固定 OFF]
ROUTE_THROUGH_ON Number [static] [すり抜け ON]
ROUTE_THROUGH_OFF Number [static] [すり抜け OFF]
ROUTE_TRANSPARENT_ON Number [static] [透明化 ON]
ROUTE_TRANSPARENT_OFF Number [static] [透明化 OFF]
ROUTE_CHANGE_IMAGE Number [static] [画像の変更]
ROUTE_CHANGE_OPACITY Number [static] [不透明度の変更]
ROUTE_CHANGE_BLEND_MODE Number [static] [合成方法の変更]
ROUTE_PLAY_SE Number [static] [SE の演奏]
ROUTE_SCRIPT Number [static] [スクリプト]
_moveRouteForcing Boolean [移動ルート]を強制しているか
_moveRoute RPG.MoveRoute [移動ルート]
_moveRouteIndex Number [移動ルート]の番号
_originalMoveRoute RPG.MoveRoute オリジナルの[移動ルート]
_originalMoveRouteIndex Number オリジナルの[移動ルート]の番号
_waitCount Number ウェイト

Inherited From

Game_CharacterBase

Methods

advanceMoveRouteIndex ()

[移動ルート]の実行位置を進める。

deltaXFrom (x) → {Number}

指定した x 座標と自身の x 座標の差分(タイル数)を返す。

Parameters:
Name Type Description
x Number x 座標(タイル数)

deltaYFrom (y) → {Number}

指定した y 座標と自身の y 座標の差分(タイル数)を返す。

Parameters:
Name Type Description
y Number y 座標(タイル数)

findDirectionTo (goalX, goalY) → {Number}

指定座標へたどり着くための向き(テンキー対応)を返す。

Parameters:
Name Type Description
goalX Number x 座標(タイル数)
goalY Number y 座標(タイル数)

forceMoveRoute (moveRoute)

[移動ルート]を強制。

Parameters:
Name Type Description
moveRoute RPG.MoveRoute [移動ルート]

initialize ()

Overrides: Game_CharacterBase

initMembers ()

Overrides: Game_CharacterBase

isMoveRouteForcing () → {Boolean}

[移動ルート]が強制されているか。

memorizeMoveRoute ()

[移動ルート]を記録。

moveAwayFromCharacter (character)

指定キャラクタから遠ざかる。

Parameters:
Name Type Description
character Game_Character キャラクタ

moveAwayFromPlayer ()

[プレイヤーから遠ざかる]。

moveBackward ()

[一歩後退]。

moveForward ()

[一歩前進]。

moveRandom ()

[ランダムに移動] [タイプ:ランダム]。

moveTowardCharacter (character)

指定キャラクタに近づく。[タイプ:近づく]。

Parameters:
Name Type Description
character Game_Character キャラクタ

moveTowardPlayer ()

[プレイヤーに近づく]。

processMoveCommand (command)

[移動コマンド]を実行。

Parameters:
Name Type Description
command RPG.MoveCommand [移動コマンド]

processRouteEnd ()

[移動ルート]の終了。

restoreMoveRoute ()

記録した[移動ルート]に戻す。

searchLimit () → {Number}

ルート検索の上限数を返す。

setMoveRoute (moveRoute)

[移動ルート]の設定。

Parameters:
Name Type Description
moveRoute RPG.MoveRoute [移動ルート]

swap (character)

指定したキャラクタと場所を入れ替わる。

Parameters:
Name Type Description
character Game_Character キャラクタ

turn180 ()

[180 度回転]。

turnAwayFromCharacter (character)

指定キャラクタの逆を向く。

Parameters:
Name Type Description
character Game_Character キャラクタ

turnAwayFromPlayer ()

[プレイヤーの逆を向く]。

turnLeft90 ()

[左に 90 度回転]。

turnRandom ()

[ランダムに方向転換]。

turnRight90 ()

[右に 90 度回転]。

turnRightOrLeft90 ()

[右か左に 90 度回転]。

turnTowardCharacter (character)

指定キャラクタの方を向く。

Parameters:
Name Type Description
character Game_Character キャラクタ

turnTowardPlayer ()

[プレイヤーの方を向く]。

updateRoutineMove ()

[移動ルート]をアップデート。

updateStop ()

Overrides: Game_CharacterBase

Menu

  • RPG ツクール MV JavaScript 非公式リファレンス
  • Class: Array
  • Class: AudioManager
  • Class: BattleManager
  • Class: Bitmap
  • Class: CacheEntry
  • Class: CacheMap
  • Class: ConfigManager
  • Class: DataManager
  • Class: Decrypter
  • Class: Game_Action
  • Class: Game_ActionResult
  • Class: Game_Actor
  • Class: Game_Actors
  • Class: Game_Battler
  • Class: Game_BattlerBase
  • Class: Game_Character
  • Class: Game_CharacterBase
  • Class: Game_CommonEvent
  • Class: Game_Enemy
  • Class: Game_Event
  • Class: Game_Follower
  • Class: Game_Followers
  • Class: Game_Interpreter
  • Class: Game_Item
  • Class: Game_Map
  • Class: Game_Message
  • Class: Game_Party
  • Class: Game_Picture
  • Class: Game_Player
  • Class: Game_Screen
  • Class: Game_SelfSwitches
  • Class: Game_Switches
  • Class: Game_System
  • Class: Game_Temp
  • Class: Game_Timer
  • Class: Game_Troop
  • Class: Game_Unit
  • Class: Game_Variables
  • Class: Game_Vehicle
  • Class: Graphics
  • Class: Html5Audio
  • Class: ImageCache
  • Class: ImageManager
  • Class: Input
  • Class: JsonEx
  • Class: MV.AudioParameters
  • Class: MV.BattleLogMethod
  • Class: MV.BattleRewards
  • Class: MV.BattlerAnimation
  • Class: MV.Color
  • Class: MV.CommandItem
  • Class: MV.ConfigData
  • Class: MV.CssColor
  • Class: MV.DatabaseFile
  • Class: MV.Matrix
  • Class: MV.Motion
  • Class: MV.PluginSettings
  • Class: MV.SaveContents
  • Class: MV.SaveFileInfo
  • Class: MV.TextState
  • Class: MV.Tone
  • Class: MV.TouchInputEvents
  • Namespace: MV
  • Class: Math
  • Class: Number
  • Class: PIXI.Container
  • Class: PIXI.DisplayObject
  • Class: PIXI.Graphics
  • Class: PIXI.Renderer
  • Class: PIXI.Sprite
  • Class: PluginManager
  • Class: Point
  • Class: RPG.Actor
  • Class: RPG.Animation.Timing
  • Class: RPG.Animation
  • Class: RPG.Armor
  • Class: RPG.AudioFile
  • Class: RPG.BaseItem
  • Class: RPG.BattleEventPage.Conditions
  • Class: RPG.BattleEventPage
  • Class: RPG.Class.Learning
  • Class: RPG.Class
  • Class: RPG.CommonEvent
  • Class: RPG.Damage
  • Class: RPG.Effect
  • Class: RPG.Enemy.Action
  • Class: RPG.Enemy.DropItem
  • Class: RPG.Enemy
  • Class: RPG.EquipItem
  • Class: RPG.Event
  • Class: RPG.EventCommand
  • Class: RPG.EventPage.Conditions
  • Class: RPG.EventPage.Image
  • Class: RPG.EventPage
  • Class: RPG.Item
  • Class: RPG.Map.Encounter
  • Class: RPG.Map
  • Class: RPG.MapInfo
  • Class: RPG.MetaData
  • Class: RPG.MoveCommand
  • Class: RPG.MoveRoute
  • Class: RPG.Skill
  • Class: RPG.State
  • Class: RPG.System.AttackMotion
  • Class: RPG.System.Terms
  • Class: RPG.System.TestBattler
  • Class: RPG.System.Vehicle
  • Class: RPG.System
  • Class: RPG.Tileset
  • Class: RPG.Trait
  • Class: RPG.Troop.Member
  • Class: RPG.Troop
  • Class: RPG.UsableItem
  • Class: RPG.Weapon
  • Namespace: RPG
  • Class: Rectangle
  • Class: RequestQueue
  • Class: ResourceHandler
  • Class: SceneManager
  • Class: Scene_Base
  • Class: Scene_Battle
  • Class: Scene_Boot
  • Class: Scene_Debug
  • Class: Scene_Equip
  • Class: Scene_File
  • Class: Scene_GameEnd
  • Class: Scene_Gameover
  • Class: Scene_Item
  • Class: Scene_ItemBase
  • Class: Scene_Load
  • Class: Scene_Map
  • Class: Scene_Menu
  • Class: Scene_MenuBase
  • Class: Scene_Name
  • Class: Scene_Options
  • Class: Scene_Save
  • Class: Scene_Shop
  • Class: Scene_Skill
  • Class: Scene_Status
  • Class: Scene_Title
  • Class: ScreenSprite
  • Class: ShaderTilemap
  • Class: SoundManager
  • Class: Sprite
  • Class: Sprite_Actor
  • Class: Sprite_Animation
  • Class: Sprite_Balloon
  • Class: Sprite_Base
  • Class: Sprite_Battler
  • Class: Sprite_Button
  • Class: Sprite_Character
  • Class: Sprite_Damage
  • Class: Sprite_Destination
  • Class: Sprite_Enemy
  • Class: Sprite_Picture
  • Class: Sprite_StateIcon
  • Class: Sprite_StateOverlay
  • Class: Sprite_Timer
  • Class: Sprite_Weapon
  • Class: Spriteset_Base
  • Class: Spriteset_Battle
  • Class: Spriteset_Map
  • Class: Stage
  • Class: StorageManager
  • Class: String
  • Class: TextManager
  • Class: Tilemap
  • Class: TilingSprite
  • Class: ToneFilter
  • Class: ToneSprite
  • Class: TouchInput
  • Class: Utils
  • Class: Weather
  • Class: WebAudio
  • Class: Window
  • Class: WindowLayer
  • Class: Window_ActorCommand
  • Class: Window_Base
  • Class: Window_BattleActor
  • Class: Window_BattleEnemy
  • Class: Window_BattleItem
  • Class: Window_BattleLog
  • Class: Window_BattleSkill
  • Class: Window_BattleStatus
  • Class: Window_ChoiceList
  • Class: Window_Command
  • Class: Window_DebugEdit
  • Class: Window_DebugRange
  • Class: Window_EquipCommand
  • Class: Window_EquipItem
  • Class: Window_EquipSlot
  • Class: Window_EquipStatus
  • Class: Window_EventItem
  • Class: Window_GameEnd
  • Class: Window_Gold
  • Class: Window_Help
  • Class: Window_HorzCommand
  • Class: Window_ItemCategory
  • Class: Window_ItemList
  • Class: Window_MapName
  • Class: Window_MenuActor
  • Class: Window_MenuCommand
  • Class: Window_MenuStatus
  • Class: Window_Message
  • Class: Window_NameEdit
  • Class: Window_NameInput
  • Class: Window_NumberInput
  • Class: Window_Options
  • Class: Window_PartyCommand
  • Class: Window_SavefileList
  • Class: Window_ScrollText
  • Class: Window_Selectable
  • Class: Window_ShopBuy
  • Class: Window_ShopCommand
  • Class: Window_ShopNumber
  • Class: Window_ShopSell
  • Class: Window_ShopStatus
  • Class: Window_SkillList
  • Class: Window_SkillStatus
  • Class: Window_SkillType
  • Class: Window_Status
  • Class: Window_TitleCommand
  • Global
  • クラスツリー