Rain and a screen tint over North Haven.

Scenes, Sprites & Windows

Screen Texts, Named Sprites and Particle Effects

reactor_screen_fx.js · 1,153 lines · 80 public functions

Rain and a screen tint over North Haven.

What This Module Does

Three script-driven screen features, all kept in $gameScreen so they save:

Classes & Namespaces

Design Notes from the Source Code

Three script-driven screen features, all kept in $gameScreen so they save:

$gameScreen.rrWriteText(id, x, y, text, fixed, color, pictureId) and the rrAppendLine / rrAppendText / rrChangeText / rrMoveText / rrRemoveText / rrRemoveAllTexts family draw text at a screen position (or, fixed, a map position) in the window font, in a text colour of the window skin, with \V[n], \N[n], \P[n], \G and \C[n] codes. A text belongs to a picture: it shows while that picture does, just above it and at its opacity.

$gameScreen.rrSpriteAdd(name, image, blend, layer, x, y, scale, angle, z) and the rrSprite* family are pictures addressed by name instead of number, on one of 2003 1.12's map layers as pictures are (1 over the parallax, 2-6 among the tiles and characters, 7-8 with the pictures, 9 over the windows, 10 over those, none over all) with a z order within it (lower in front), a map binding that scrolls with the map, eased moves, scales, opacity, rotation and colour fades.

$gameScreen.rrPfxCreate(name, "burst" | "stream") and the rrPfx* family define particle effects (texture, amount, velocity, angle, colours, growth, timeout, gravity, layer) and burst or stream them at a point. Live particles are not saved; the definitions are.

The RPG Maker 2000/2003 importer targets these for the DynRPG text, sprite and particle-effect plugins, but they are ordinary engine features.

View reactor_screen_fx.js on GitHub · Show internal (_) functions