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

Class: Sprite_Enemy

Sprite_Enemy ()

new Sprite_Enemy ()

The sprite for displaying an enemy.

Properties:
Name Type Description
battler Game_Enemy  
_enemy Game_Enemy  
_appeared Boolean  
_battlerName String  
_battlerHue Number  
_effectType String  
_effectDuration Number  
_shake Number  
_stateIconSprite Sprite_StateIcon  

Extends

Methods

_speedUpCustomBlendModes (renderer)

checks if we need to speed up custom blendmodes

Parameters:
Name Type Description
renderer    
Inherited From:

createStateIconSprite ()

damageOffsetX () → {Number}

Overrides:
Returns:
Type
Number

damageOffsetY () → {Number}

Overrides:
Returns:
Type
Number

hide ()

Hides the sprite.

Inherited From:

inHomePosition () → {Boolean}

Returns true if the sprite battler is in the home position.

Inherited From:
Returns:
Type
Boolean

initialize (battler)

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

Parameters:
Name Type Description
battler Game_Enemy  
Overrides:

initMembers ()

Overrides:

initVisibility ()

isAnimationPlaying () → {boolean}

Returns true if an animation is currently playing.

Inherited From:
Returns:
Type
boolean

isEffecting () → {Boolean}

Returns true if the effect type on the sprite enemy is not null.

Overrides:
Returns:
Type
Boolean

isMoving () → {boolean}

Returns true if the sprite for the battler is moving.

Inherited From:
Returns:
Type
boolean

loadBitmap (name, hue)

Parameters:
Name Type Description
name String  
hue Number  

onMoveEnd ()

Handler for when movement has ended.

Inherited From:

revertToNormal ()

Revers the sprite enemy to a normal state.

setBattler (battler)

Sets the battler to an instance of game enemy.

Parameters:
Name Type Description
battler Game_Enemy Instance of game enemy.
Overrides:

setHome (x, y)

Sets the home position of the sprite battler to the given x and y coordinates.

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

setupAnimation ()

Sets up animation on the sprite battler.

Inherited From:

setupDamagePopup ()

Sets up damage popup on the sprite battler.

Inherited From:

setupEffect ()

show ()

Shows the sprite.

Inherited From:

startAnimation (animation, mirror, delay)

Starts a new animation on the current sprite by assigning a new Sprite_Animation object to the sprite’s parent.

Parameters:
Name Type Description
animation RPG.Animation  
mirror Boolean  
delay Number  
Inherited From:

startAppear ()

Starts the appearinig effect on the sprite enemy.

Starts the blink effect on the sprite enemy.

startBossCollapse ()

Starts the boss collapse effect of the sprite enemy.

startCollapse ()

Starts the collapse effect of the sprite enemy.

startDisappear ()

Starts the disappearing effect on the sprite enemy.

startEffect (effectType)

Parameters:
Name Type Description
effectType String  

startInstantCollapse ()

Starts the instant collapse effect of the sprite enemy.

startMove (x, y, duration)

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

startWhiten ()

Starts the whiten effect on the sprite enemy.

update ()

Overrides:

updateAnimation ()

Updates the sprite battler animation.

Inherited From:

updateAnimationSprites ()

Updates the animation sprites, cloning them; if the sprite is playing, pushes the sprites into animation sprites, otherwise the sprite is removed.

Inherited From:

updateAppear ()

Updates the appear effect on the sprite enemy.

updateBitmap ()

Overrides:

Updates the blink effect on the sprite enemy.

updateBossCollapse ()

Updates the boss collapse effect.

updateCollapse ()

Updates the collapse effect.

updateDamagePopup ()

Updates the damage pop up for the sprite battler.

Inherited From:

updateDisappear ()

updateEffect ()

updateFrame ()

Overrides:

updateInstantCollapse ()

Updates the instant collapse effect.

updateMain ()

Updates the main loop of the sprite battler.

Inherited From:

updateMove ()

Updates movement on the sprite battler.

Inherited From:

updatePosition ()

Overrides:

updateSelectionEffect ()

Inherited From:

updateStateSprite ()

Updates the state sprite on the sprite enemy.

updateVisibility ()

Inherited From:

updateWhiten ()

Updates the whiten effect on the sprite enemy.


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
  • クラスツリー