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.
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. |
Events, Commands & Input 2
| _onBitmapChange() | Called when bitmap change happens. |
| _onBitmapLoad() | Called when bitmap load happens. |
Updating & Drawing 3
| update() | Updates the tiling sprite for each frame. |
| updateTransform() | Updates the transform on all children of this container for rendering. |
| _refresh() | Refresh. |
Setup & Creation
initialize
method sourceTilingSprite.prototype.initialize(bitmap)
Sets up a new instance. (Same as the RPG Maker MZ method of this name.)
Actions
destroy
method sourceTilingSprite.prototype.destroy()
Destroys the tiling sprite.
move
method sourceTilingSprite.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.
setFrame
method sourceTilingSprite.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.
Events, Commands & Input
_onBitmapChange
method internal sourceTilingSprite.prototype._onBitmapChange()
Called when bitmap change happens. (Same as the RPG Maker MZ method of this name.)
_onBitmapLoad
method internal sourceTilingSprite.prototype._onBitmapLoad()
Called when bitmap load happens. (Same as the RPG Maker MZ method of this name.)
Updating & Drawing
update
method sourceTilingSprite.prototype.update()
Updates the tiling sprite for each frame.
updateTransform
method sourceTilingSprite.prototype.updateTransform()
Updates the transform on all children of this container for rendering.
_refresh
method internal sourceTilingSprite.prototype._refresh()
Refresh. (Same as the RPG Maker MZ method of this name.)