Class: Spriteset_Map

Spriteset_Map

new Spriteset_Map()

The set of sprites on the map screen.

Extends

Members

The bitmap for the sprite

blendModenumberinherited

The blend mode to be applied to the sprite

heightnumberinherited

The height of the sprite without the scale

opacitynumberinherited

The opacity of the sprite (0 to 255)

widthnumberinherited

The width of the sprite without the scale

Methods

animationBaseDelay()numberoverrides

The base delay for animations
Returns:
TypeDescription
numberThe base animation delay

animationNextDelay()numberinherited

Get animation next delay
Returns:
TypeDescription
numberNext delay for animations

animationShouldMirror(target)booleaninherited

Check if the animation should mirror
NameTypeDescription
targetGame_BattlerThe target to check for mirror
Returns:
TypeDescription
booleanTrue if should mirror

createAnimation(request)inherited

Creates an animation
NameTypeDescription
requestObjectAn animation request object

createAnimationSprite(targets, animation, mirror, delay)inherited

Creates an animation sprite
NameTypeDescription
targetsArrayThe array of animation targets
animationObjectThe data animation object
mirrorbooleanThe mirror property for an animation
delaynumberThe delay for the animation

createBalloon(request)

Creates a balloon
NameTypeDescription
requestObjectThe balloon request object
Creates the filters for the base sprite
Creates the base sprite to display behind all other sprites

createCharacters()

Creates the character sprites

createDestination()

Creates the destination sprite
Creates the lower layer of the spriteset

createOverallFilters()inherited

Creates the overall filters

createParallax()

Creates the parallax sprite
Creates a picture container and all necessary picture objects

createShadow()

Creates the shadow sprite

createTilemap()

Creates the tilemap
Creates the timer sprite
Creates the upper layer of the spriteset

createWeather()

Creates the weather
Destroys the sprite
Find a target sprite by game character
NameTypeDescription
TheGame_Charactergame character to find a matching sprite for
Returns:
TypeDescription
Sprite_CharacterThe found sprite

getBlendColor()arrayinherited

Gets the blend color for the sprite
Returns:
TypeDescription
arrayThe blend color [r, g, b, a]

getColorTone()arrayinherited

Gets the color tone for the sprite
Returns:
TypeDescription
arrayThe color tone [r, g, b, gray]
Makes the sprite "hidden" (not visible)

hideCharacters()

Hides all character sprites
Initializes the sprite
NameTypeDescription
bitmapBitmapThe bitmap of the sprite

isAnimationForEach()booleaninherited

Check if the animation is for each
Returns:
TypeDescription
booleanTrue if for each

isAnimationPlaying()booleaninherited

Check if there is an animation playing
Returns:
TypeDescription
booleanTrue if any animation is playing

isMVAnimation(animation)booleaninherited

Check if the animation is MV or MZ type
NameTypeDescription
animationObjectThe data animation object
Returns:
TypeDescription
booleanTrue if MV animation type
Gets the last animation sprite
Returns:
TypeDescription
Sprite_Animation|Sprite_AnimationMVThe animation sprite object
Loads required system images for the spriteset

loadTileset()

Loads the tileset

makeTargetSprites(targets)Arrayinherited

Gets the target sprites
NameTypeDescription
targetsArrayThe data objects of the targets
Returns:
TypeDescription
ArrayThe sprites of the data object targets
Sets the x and y coordiantes of the sprite
NameTypeDescription
xnumberThe x coordinate of the sprite
ynumberThe y coordinate of the sprite
Get the rectangle where pictures can display
Returns:
TypeDescription
RectangleThe rectangle object of the picture container

processAnimationRequests()inherited

Processes animation requests

processBalloonRequests()

Check if any balloons are requested and process them if so

removeAllAnimations()inherited

Removes all animations

removeAllBalloons()

Removes all balloons

removeAnimation(sprite)inherited

Removes an animation
NameTypeDescription
spriteSprite_Animation|Sprite_AnimationMVThe animation sprite to remove

removeBalloon(sprite)

Removes a balloon
NameTypeDescription
spriteSprite_BalloonThe balloon to remove

setBlendColor(color)inherited

Sets the blend color for the sprite
NameTypeDescription
colorarrayThe blend color [r, g, b, a]

setColorTone(tone)inherited

Sets the color tone for the sprite
NameTypeDescription
tonearrayThe color tone [r, g, b, gray]

setFrame(x, y, width, height)inherited

Sets the rectagle of the bitmap that the sprite displays
NameTypeDescription
xnumberThe x coordinate of the frame
ynumberThe y coordinate of the frame
widthnumberThe width of the frame
heightnumberThe height of the frame
Sets the hue rotation value
NameTypeDescription
huenumberThe hue value (-360, 360)
Removes the "hidden" state of the sprite, making it visible
Updates the sprite for each frame
Updates the animations playing in the spriteset

updateBalloons()

Updates balloon sprites
Updates the base filters

updateOverallFilters()inherited

Updates the overall filters

updateParallax()

Updates the parallax
Updates the position of the spriteset

updateShadow()

Updates the shadow sprite

updateTilemap()

Updates the tilemap

updateTileset()

Updates the tileset

updateVisibility()inherited

Updates the visibility status of the sprite

updateWeather()

Updates the weather