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

Class: Game_Character

Game_Character ()

new Game_Character ()

Game_Player, Game_Follower, Game_Vehicle および Game_Event のスーパークラス。

静的プロパティに定義してある定数は、[移動ルートの設定]の[移動コマンド]に対応している。

Sprite_Character のコンストラクタ引数として渡され、表示される。

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][右に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 ウェイト

Extends

Inherited From

Game_CharacterBase

Methods

advanceMoveRouteIndex ()

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

deltaXFrom (x) → {Number}

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

Parameters:
Name Type Description
x Number タイル数
Returns:
Type
Number

deltaYFrom (y) → {Number}

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

Parameters:
Name Type Description
y Number タイル数
Returns:
Type
Number

findDirectionTo (goalX, goalY) → {Number}

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

Parameters:
Name Type Description
goalX Number タイル数
goalY Number タイル数
Returns:
Type
Number

forceMoveRoute (moveRoute)

[移動ルート]を強制。

Parameters:
Name Type Description
moveRoute RPG.MoveRoute  

initialize ()

オブジェクト生成時の初期化。

Overrides:

Game_CharacterBase.initialize ()

initMembers ()

メンバ変数の初期化。

Overrides:

Game_CharacterBase.initMembers ()

isMoveRouteForcing () → {Boolean}

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

Returns:
Type
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}

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

Returns:
Type
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.updateStop ()


Documentation generated by JSDoc 3.5.5

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: AudioParameters
  • Class: BattleLogMethod
  • Class: BattleRewards
  • Class: BattlerAnimation
  • Class: CommandItem
  • Class: ConfigData
  • Class: DatabaseFile
  • Class: Matrix
  • Class: Motion
  • Class: PluginSettings
  • Class: SaveContents
  • Class: SaveFileInfo
  • Class: TextState
  • Class: TouchInputEvents
  • Namespace: MV
  • Class: Math
  • Class: Number
  • Class: PIXI.Container
  • Class: PIXI.DisplayObject
  • Class: PIXI.Graphics
  • Class: PIXI.Sprite
  • Class: PluginManager
  • Class: Point
  • Class: Actor
  • Class: Timing
  • Class: Animation
  • Class: Armor
  • Class: AudioFile
  • Class: BaseItem
  • Class: Conditions
  • Class: BattleEventPage
  • Class: Learning
  • Class: Class
  • Class: CommonEvent
  • Class: Damage
  • Class: Effect
  • Class: Action
  • Class: DropItem
  • Class: Enemy
  • Class: EquipItem
  • Class: Event
  • Class: EventCommand
  • Class: Conditions
  • Class: Image
  • Class: EventPage
  • Class: Item
  • Class: Encounter
  • Class: Map
  • Class: MapInfo
  • Class: MetaData
  • Class: MoveCommand
  • Class: MoveRoute
  • Class: Skill
  • Class: State
  • Class: AttackMotion
  • Class: Terms
  • Class: TestBattler
  • Class: Vehicle
  • Class: System
  • Class: Tileset
  • Class: Trait
  • Class: Troop
  • Class: UsableItem
  • Class: 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: Member
  • 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
  • クラスツリー