Namespace in reactor_screen_fx.js
Game_Screen
53 public functions in 4 groups · show internal (_) functions
Familiar territory. Game_Screen keeps the RPG Maker MZ API, so existing MZ knowledge, tutorials and plugin code apply. Reactor's additions are marked with descriptions below.
Quick Reference
Getting Information 1
| maxPictures() | The maximum pictures. |
Actions 1
| clear() | Clear. |
Updating & Drawing 1
| updatePictures() | Updates the pictures each frame. |
Other 50
| rrTexts() | Rr texts. |
| rrText() | Rr text. |
| rrWriteText() | Rr write text. |
| rrAppendLine() | Rr append line. |
| rrAppendText() | Rr append text. |
| rrChangeText() | Rr change text. |
| rrMoveText() | Rr move text. |
| rrRemoveText() | Rr remove text. |
| rrRemoveAllTexts() | Rr remove all texts. |
| rrTextAlign() | Rr text align. |
| rrSpriteId() | Rr sprite id. |
| rrSpritePicture() | Rr sprite picture. |
| rrSpriteAdd() | Rr sprite add. |
| rrSpriteRemove() | Rr sprite remove. |
| rrSpriteRemoveAll() | Rr sprite remove all. |
| rrSpriteBind() | Rr sprite bind. |
| rrSpriteZ() | Rr sprite z. |
| rrSpriteLayer() | Rr sprite layer. |
| rrSpriteImage() | Rr sprite image. |
| rrSpriteOpacity() | Rr sprite opacity. |
| rrSpriteOpacityTo() | Rr sprite opacity to. |
| rrSpriteMoveTo() | Rr sprite move to. |
| rrSpriteMoveBy() | Rr sprite move by. |
| rrSpriteScaleTo() | Rr sprite scale to. |
| rrSpriteRotateBy() | A sprite's angle turns clockwise, as a picture's does, but rotating *by* a positive amount turns it counter-c… |
| rrSpriteRotateTo() | Turn to an absolute angle (clockwise, as rrSpriteAdd's), going "cw" or "ccw" the short way round the circle i… |
| rrSpriteBlend() | Rr sprite blend. |
| rrSpriteRotateForever() | Rr sprite rotate forever. |
| rrSpriteRotateStop() | Rr sprite rotate stop. |
| rrSpriteColor() | Rr sprite color. |
| rrSpriteColorTo() | Rr sprite color to. |
| rrSpritePosition() | Rr sprite position. |
| rrPictureLayer() | Rr picture layer. |
| rrPfx() | Rr pfx. |
| rrPfxCreate() | Rr pfx create. |
| rrPfxDestroy() | Rr pfx destroy. |
| rrPfxDestroyAll() | Rr pfx destroy all. |
| rrPfxExists() | Rr pfx exists. |
| rrPfxSet() | One setting: texture, amount, simul, velocity, angle, color0, color1, growth, randomPos, timeout, layer, grav… |
| rrPfxBurst() | Rr pfx burst. |
| rrPfxStart() | Rr pfx start. |
| rrPfxStop() | Rr pfx stop. |
| rrPfxStopAll() | Rr pfx stop all. |
| rrPfxSetPosition() | Rr pfx set position. |
| rrPictureEffect() | Rr picture effect. |
| rrPictureFrames() | RPG Maker 2003 1.12 spritesheet pictures: the image is cols × rows frames and the picture shows one, counted… |
| rrKeepPicture() | RPG Maker 2000/2003 erase a picture when the party changes map, unless the Show Picture said to keep it (2003… |
| rrEraseOnMapChange() | The sprite plugin's named sprites go with the map too: Deep 8 never removes the ship it lands on map 25, and… |
| rrPictureFixToMap() | A 2000/2003 picture shown "fixed to the map" is placed on the screen like any other, then moves with every ma… |
| rrScrollFixedPictures() | Rr scroll fixed pictures. |
Getting Information
maxPictures
method sourceGame_Screen.prototype.maxPictures()
The maximum pictures. (Same as the RPG Maker MZ method of this name.)
Actions
clear
method sourceGame_Screen.prototype.clear()
Clear. (Same as the RPG Maker MZ method of this name.)
Updating & Drawing
updatePictures
method sourceGame_Screen.prototype.updatePictures()
Updates the pictures each frame. (Same as the RPG Maker MZ method of this name.)
Other
rrTexts
method sourceGame_Screen.prototype.rrTexts()
Rr texts. (Same as the RPG Maker MZ method of this name.)
rrText
method sourceGame_Screen.prototype.rrText(id)
Rr text. (Same as the RPG Maker MZ method of this name.)
rrWriteText
method sourceGame_Screen.prototype.rrWriteText(id, x, y, text, fixed, color, layer)
Rr write text. (Same as the RPG Maker MZ method of this name.)
rrAppendLine
method sourceGame_Screen.prototype.rrAppendLine(id, text)
Rr append line. (Same as the RPG Maker MZ method of this name.)
rrAppendText
method sourceGame_Screen.prototype.rrAppendText(id, text)
Rr append text. (Same as the RPG Maker MZ method of this name.)
rrChangeText
method sourceGame_Screen.prototype.rrChangeText(id, text, color)
Rr change text. (Same as the RPG Maker MZ method of this name.)
rrMoveText
method sourceGame_Screen.prototype.rrMoveText(id, x, y)
Rr move text. (Same as the RPG Maker MZ method of this name.)
rrRemoveText
method sourceGame_Screen.prototype.rrRemoveText(id)
Rr remove text. (Same as the RPG Maker MZ method of this name.)
rrRemoveAllTexts
method sourceGame_Screen.prototype.rrRemoveAllTexts()
Rr remove all texts. (Same as the RPG Maker MZ method of this name.)
rrTextAlign
method sourceGame_Screen.prototype.rrTextAlign(id, align)
Rr text align. (Same as the RPG Maker MZ method of this name.)
rrSpriteId
method sourceGame_Screen.prototype.rrSpriteId(name, create)
Rr sprite id. (Same as the RPG Maker MZ method of this name.)
rrSpritePicture
method sourceGame_Screen.prototype.rrSpritePicture(name)
Rr sprite picture. (Same as the RPG Maker MZ method of this name.)
rrSpriteAdd
method sourceGame_Screen.prototype.rrSpriteAdd(name, image, blend, layer, x, y, scale, angle, z)
Rr sprite add. (Same as the RPG Maker MZ method of this name.)
rrSpriteRemove
method sourceGame_Screen.prototype.rrSpriteRemove(name)
Rr sprite remove. (Same as the RPG Maker MZ method of this name.)
rrSpriteRemoveAll
method sourceGame_Screen.prototype.rrSpriteRemoveAll()
Rr sprite remove all. (Same as the RPG Maker MZ method of this name.)
rrSpriteBind
method sourceGame_Screen.prototype.rrSpriteBind(name, target)
Rr sprite bind. (Same as the RPG Maker MZ method of this name.)
rrSpriteZ
method sourceGame_Screen.prototype.rrSpriteZ(name, z)
Rr sprite z. (Same as the RPG Maker MZ method of this name.)
rrSpriteLayer
method sourceGame_Screen.prototype.rrSpriteLayer(name, layer)
Rr sprite layer. (Same as the RPG Maker MZ method of this name.)
rrSpriteImage
method sourceGame_Screen.prototype.rrSpriteImage(name, image)
Rr sprite image. (Same as the RPG Maker MZ method of this name.)
rrSpriteOpacity
method sourceGame_Screen.prototype.rrSpriteOpacity(name, opacity)
Rr sprite opacity. (Same as the RPG Maker MZ method of this name.)
rrSpriteOpacityTo
method sourceGame_Screen.prototype.rrSpriteOpacityTo(name, opacity, ms, easing)
Rr sprite opacity to. (Same as the RPG Maker MZ method of this name.)
rrSpriteMoveTo
method sourceGame_Screen.prototype.rrSpriteMoveTo(name, x, y, ms, easing)
Rr sprite move to. (Same as the RPG Maker MZ method of this name.)
rrSpriteMoveBy
method sourceGame_Screen.prototype.rrSpriteMoveBy(name, dx, dy, ms, easing)
Rr sprite move by. (Same as the RPG Maker MZ method of this name.)
rrSpriteScaleTo
method sourceGame_Screen.prototype.rrSpriteScaleTo(name, sx, sy, ms, easing)
Rr sprite scale to. (Same as the RPG Maker MZ method of this name.)
rrSpriteRotateBy
method sourceGame_Screen.prototype.rrSpriteRotateBy(name, degrees, ms, easing)
A sprite's angle turns clockwise, as a picture's does, but rotating by a positive amount turns it counter-clockwise (settled against Deep 8's shipped player: its trees fall right at -90, and the halves of a tree tilted by -50 are added at angle 50).
rrSpriteRotateTo
method sourceGame_Screen.prototype.rrSpriteRotateTo(name, direction, degrees, ms, easing)
Turn to an absolute angle (clockwise, as rrSpriteAdd's), going "cw" or "ccw" the short way round the circle in that direction.
rrSpriteBlend
method sourceGame_Screen.prototype.rrSpriteBlend(name, blend)
Rr sprite blend. (Same as the RPG Maker MZ method of this name.)
rrSpriteRotateForever
method sourceGame_Screen.prototype.rrSpriteRotateForever(name, direction, msPerTurn)
Rr sprite rotate forever. (Same as the RPG Maker MZ method of this name.)
rrSpriteRotateStop
method sourceGame_Screen.prototype.rrSpriteRotateStop(name)
Rr sprite rotate stop. (Same as the RPG Maker MZ method of this name.)
rrSpriteColor
method sourceGame_Screen.prototype.rrSpriteColor(name, r, g, b, sat)
Rr sprite color. (Same as the RPG Maker MZ method of this name.)
rrSpriteColorTo
method sourceGame_Screen.prototype.rrSpriteColorTo(name, r, g, b, sat, ms)
Rr sprite color to. (Same as the RPG Maker MZ method of this name.)
rrSpritePosition
method sourceGame_Screen.prototype.rrSpritePosition(name, variableX, variableY)
Rr sprite position. (Same as the RPG Maker MZ method of this name.)
rrPictureLayer
method sourceGame_Screen.prototype.rrPictureLayer(id, mapLayer, battleLayer)
Rr picture layer. (Same as the RPG Maker MZ method of this name.)
rrPfx
method sourceGame_Screen.prototype.rrPfx(name)
Rr pfx. (Same as the RPG Maker MZ method of this name.)
rrPfxCreate
method sourceGame_Screen.prototype.rrPfxCreate(name, type)
Rr pfx create. (Same as the RPG Maker MZ method of this name.)
rrPfxDestroy
method sourceGame_Screen.prototype.rrPfxDestroy(name)
Rr pfx destroy. (Same as the RPG Maker MZ method of this name.)
rrPfxDestroyAll
method sourceGame_Screen.prototype.rrPfxDestroyAll()
Rr pfx destroy all. (Same as the RPG Maker MZ method of this name.)
rrPfxExists
method sourceGame_Screen.prototype.rrPfxExists(name, switchId)
Rr pfx exists. (Same as the RPG Maker MZ method of this name.)
rrPfxSet
method sourceGame_Screen.prototype.rrPfxSet(name, key, ...values)
One setting: texture, amount, simul, velocity, angle, color0, color1, growth, randomPos, timeout, layer, gravity, screenRelative, generating, radius, randomRadius.
rrPfxBurst
method sourceGame_Screen.prototype.rrPfxBurst(name, x, y)
Rr pfx burst. (Same as the RPG Maker MZ method of this name.)
rrPfxStart
method sourceGame_Screen.prototype.rrPfxStart(name, stream, x, y)
Rr pfx start. (Same as the RPG Maker MZ method of this name.)
rrPfxStop
method sourceGame_Screen.prototype.rrPfxStop(name, stream)
Rr pfx stop. (Same as the RPG Maker MZ method of this name.)
rrPfxStopAll
method sourceGame_Screen.prototype.rrPfxStopAll(name)
Rr pfx stop all. (Same as the RPG Maker MZ method of this name.)
rrPfxSetPosition
method sourceGame_Screen.prototype.rrPfxSetPosition(name, stream, x, y)
Rr pfx set position. (Same as the RPG Maker MZ method of this name.)
rrPictureEffect
method sourceGame_Screen.prototype.rrPictureEffect(id, mode, power)
Rr picture effect. (Same as the RPG Maker MZ method of this name.)
rrPictureFrames
method sourceGame_Screen.prototype.rrPictureFrames(id, cols, rows, frame, speed, once)
RPG Maker 2003 1.12 spritesheet pictures: the image is cols × rows frames and the picture shows one, counted row by row, or steps through them every speed frames (erasing itself after one pass when once).
Details
RPG Maker 2003 1.12 spritesheet pictures: the image is cols × rows frames and the picture shows one,
counted row by row, or steps through them every speed frames (erasing itself after one pass when
once). A frame outside the sheet with no animation shows nothing. EasyRPG's rules.
rrKeepPicture
method sourceGame_Screen.prototype.rrKeepPicture(id)
RPG Maker 2000/2003 erase a picture when the party changes map, unless the Show Picture said to keep it (2003's own flag).
Details
RPG Maker 2000/2003 erase a picture when the party changes map, unless the Show Picture said to keep it (2003's own flag). System.json rrPicturesEraseOnMapChange turns that on, so MV and MZ pictures keep persisting. Named sprites are not pictures there: their slots (advanced.rrNamedSpriteBase up) are left alone.
rrEraseOnMapChange
method sourceGame_Screen.prototype.rrEraseOnMapChange()
The sprite plugin's named sprites go with the map too: Deep 8 never removes the ship it lands on map 25, and the old player shows no trace of it on map 27.
rrPictureFixToMap
method sourceGame_Screen.prototype.rrPictureFixToMap(id)
A 2000/2003 picture shown "fixed to the map" is placed on the screen like any other, then moves with every map scroll after that, so it stays over the same ground (trees drawn as pictures).
rrScrollFixedPictures
method sourceGame_Screen.prototype.rrScrollFixedPictures(dx, dy)
Rr scroll fixed pictures. (Same as the RPG Maker MZ method of this name.)