Familiar territory. Weather keeps the RPG Maker MZ API, so existing MZ knowledge, tutorials and plugin code apply. Reactor's additions are marked with descriptions below.
The weather effect which displays rain, storm, or snow.
function Weather()
Quick Reference
Setup & Creation 3
| initialize() | Sets up a new instance. |
| _createBitmaps() | Creates the bitmaps. |
| _createDimmer() | Creates the dimmer. |
Actions 3
| destroy() | Destroys the weather. |
| _addSprite() | Adds the sprite. |
| _removeSprite() | Removes the sprite. |
Updating & Drawing 7
| update() | Updates the weather for each frame. |
| _updateDimmer() | Updates the dimmer each frame. |
| _updateAllSprites() | Updates the all sprites each frame. |
| _updateSprite() | Updates the sprite each frame. |
| _updateRainSprite() | Updates the rain sprite each frame. |
| _updateStormSprite() | Updates the storm sprite each frame. |
| _updateSnowSprite() | Updates the snow sprite each frame. |
Other 1
| _rebornSprite() | Reborn sprite. |
Setup & Creation
initialize
method sourceWeather.prototype.initialize()
Sets up a new instance. (Same as the RPG Maker MZ method of this name.)
_createBitmaps
method internal sourceWeather.prototype._createBitmaps()
Creates the bitmaps. (Same as the RPG Maker MZ method of this name.)
_createDimmer
method internal sourceWeather.prototype._createDimmer()
Creates the dimmer. (Same as the RPG Maker MZ method of this name.)
Actions
destroy
method sourceWeather.prototype.destroy()
Destroys the weather.
_addSprite
method internal sourceWeather.prototype._addSprite()
Adds the sprite. (Same as the RPG Maker MZ method of this name.)
_removeSprite
method internal sourceWeather.prototype._removeSprite()
Removes the sprite. (Same as the RPG Maker MZ method of this name.)
Updating & Drawing
update
method sourceWeather.prototype.update()
Updates the weather for each frame.
_updateDimmer
method internal sourceWeather.prototype._updateDimmer()
Updates the dimmer each frame. (Same as the RPG Maker MZ method of this name.)
_updateAllSprites
method internal sourceWeather.prototype._updateAllSprites()
Updates the all sprites each frame. (Same as the RPG Maker MZ method of this name.)
_updateSprite
method internal sourceWeather.prototype._updateSprite(sprite)
Updates the sprite each frame. (Same as the RPG Maker MZ method of this name.)
_updateRainSprite
method internal sourceWeather.prototype._updateRainSprite(sprite)
Updates the rain sprite each frame. (Same as the RPG Maker MZ method of this name.)
_updateStormSprite
method internal sourceWeather.prototype._updateStormSprite(sprite)
Updates the storm sprite each frame. (Same as the RPG Maker MZ method of this name.)
_updateSnowSprite
method internal sourceWeather.prototype._updateSnowSprite(sprite)
Updates the snow sprite each frame. (Same as the RPG Maker MZ method of this name.)
Other
_rebornSprite
method internal sourceWeather.prototype._rebornSprite(sprite)
Reborn sprite. (Same as the RPG Maker MZ method of this name.)