Class in reactor_core_display.js

TilingSprite

6 public functions in 3 groups · show internal (_) functions

The Database: everything Core loads at boot.

Familiar territory. TilingSprite keeps the RPG Maker MZ API, so existing MZ knowledge, tutorials and plugin code apply. Reactor's additions are marked with descriptions below.

The sprite object for a tiling image.

@class
@extends
PIXI.TilingSprite
@param
bitmap Bitmap The image for the tiling sprite.
function TilingSprite()

Quick Reference

Setup & Creation 1

initialize() Sets up a new instance.

Actions 3

destroy() Destroys the tiling sprite.
move() Sets the x, y, width, and height all at once.
setFrame() Specifies the region of the image that the tiling sprite will use.

Updating & Drawing 2

update() Updates the tiling sprite for each frame.
updateTransform() Updates the transform on all children of this container for rendering.

Setup & Creation

initialize

method source
TilingSprite.prototype.initialize(bitmap)

Sets up a new instance. (Same as the RPG Maker MZ method of this name.)

Actions

destroy

method source
TilingSprite.prototype.destroy()

Destroys the tiling sprite.

move

method source
TilingSprite.prototype.move(x, y, width, height)

Sets the x, y, width, and height all at once.

Details

Sets the x, y, width, and height all at once.

@param
x number The x coordinate of the tiling sprite.
@param
y number The y coordinate of the tiling sprite.
@param
width number The width of the tiling sprite.
@param
height number The height of the tiling sprite.

setFrame

method source
TilingSprite.prototype.setFrame(x, y, width, height)

Specifies the region of the image that the tiling sprite will use.

Details

Specifies the region of the image that the tiling sprite will use.

@param
x number The x coordinate of the frame.
@param
y number The y coordinate of the frame.
@param
width number The width of the frame.
@param
height number The height of the frame.

Updating & Drawing

update

method source
TilingSprite.prototype.update()

Updates the tiling sprite for each frame.

updateTransform

method source
TilingSprite.prototype.updateTransform()

Updates the transform on all children of this container for rendering.