Familiar territory. Game_RemotePlayer keeps the RPG Maker MZ API, so existing MZ knowledge, tutorials and plugin code apply. Reactor's additions are marked with descriptions below.
Another player: a character with no will of its own, replaying where that player has been.
function Game_RemotePlayer()
Quick Reference
Setup & Creation 1
| initialize() | Sets up a new instance. |
Checks (True / False) 2
| isMoving() | Whether it is moving. |
| isDashing() | Whether it is dashing. |
Actions 4
| setAsleep() | A player who signed off, lying where they stopped. |
| setState() | Riding and fighting, as this player's game reports them. |
| setLook() | Whom this player shows: an actor of the project every player already has. |
| addSample() | A report of where this player was, stamped by their own clock. |
Other 2
| targetDelay() | How far behind to play: enough that a report is nearly always here before it is needed. |
| advance() | Replays this player's walk a moment behind them, then eases the shown body onto it. |
Setup & Creation
initialize
method sourceGame_RemotePlayer.prototype.initialize(slot)
Sets up a new instance. (Same as the RPG Maker MZ method of this name.)
Checks (True / False)
isMoving
method sourceGame_RemotePlayer.prototype.isMoving()
Whether it is moving. (Same as the RPG Maker MZ method of this name.)
isDashing
method sourceGame_RemotePlayer.prototype.isDashing()
Whether it is dashing. (Same as the RPG Maker MZ method of this name.)
Actions
setAsleep
method sourceGame_RemotePlayer.prototype.setAsleep(entry)
A player who signed off, lying where they stopped.
Details
A player who signed off, lying where they stopped. Nobody moves them; they stay until they wake.
setState
method sourceGame_RemotePlayer.prototype.setState(ride, fight)
Riding and fighting, as this player's game reports them.
Details
Riding and fighting, as this player's game reports them. Inside a closed vehicle there is no body to draw.
setLook
method sourceGame_RemotePlayer.prototype.setLook(actorId, name)
Whom this player shows: an actor of the project every player already has.
addSample
method sourceGame_RemotePlayer.prototype.addSample(sample)
A report of where this player was, stamped by their own clock.
Details
A report of where this player was, stamped by their own clock. Arrival times lie: a stalled request delivers late, but the walk it describes happened on time, so playback runs on the sender's clock and only the buffer feels a stall.
Other
targetDelay
method sourceGame_RemotePlayer.prototype.targetDelay()
How far behind to play: enough that a report is nearly always here before it is needed.
advance
method sourceGame_RemotePlayer.prototype.advance(now)
Replays this player's walk a moment behind them, then eases the shown body onto it.