Send a key to the running game
live_keyPress a game key in a live RPG Maker MZ playtest to advance dialogs or send input, holding each press for counted engine frames and waiting until processed; slow frames or focus loss cannot swallow it.
Instructions
Press a game key in the live game (Ok=13/32, Cancel=27, Shift=16, arrow keys 37-40) to advance dialogs or drive input. Each press is held for a counted number of engine frames and re-asserted on every one of them, and the call answers once the game has run them all, so a slow or headless frame rate cannot swallow it and neither can the browser taking focus. The reply carries the measured frame rate it was sized with and whether the player's cell actually changed. To walk somewhere, prefer live_move: one press is one step only if the player happens to be standing still when it lands. Needs the RMMZLiveBridge plugin, not Allow Eval.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pulses | No | How many short presses to send (default 3) | |
| keyCode | Yes | ||
| holdFrames | No | Engine frames each press is held for (default 2) |