The video tutorial for this page is coming later. Subscribe to the RPG Paper Maker YouTube channel to see it as soon as it is out.
You know how to build beautiful maps; now let's make them alive with characters, treasures, doors and cutscenes. These are objects, and they react to events. Objects and events are the heart of your game's logic, one of the most powerful parts of RPG Paper Maker.
Objects#
An object is something on a map that can move and/or react to events: a character, a monster, a chest, a door, an invisible trigger… The hero is an object too, so you can program its reactions like any other.
A tree that only stands there is not an object: it is a sprite or a 3D object. It becomes an object only if it reacts to something (for example, it can be cut with an axe).
Create an object#
- Choose Object in the map editor toolbar.
- Double click a square (or select it and press
Enter).
The object window opens.

- Name: helps you find the object later, in commands that target an object.
- Model: the model the object is based on (see Models below).
- Only one event per frame: the object reacts to only one event per frame, not several at once (60 frames = 1 second).
Right click an object on the map to Edit, Copy, Paste or Delete it. The objects list shows all the objects of the map; double click one to open it.
Events#
Events in RPG Paper Maker are not the same as in the RPG Maker series. An event is the fact that something just happened: the hero pressed the action key, two seconds passed, a quest was completed, a sword hit… Objects choose which events they react to, and how.
There are two kinds:
- System events, sent by the game itself:
- Time: sent after an Interval (in milliseconds), once or on Repeat.
- Chronometer finished: a chronometer started with the Change chronometer command reached zero.
- KeyPress and KeyRelease: a key of the keyboard controls was pressed or released. Repeat sends it as long as the key is held (with a small delay after the first press); Immediate Repeat without the delay.
- MouseDown, MouseUp, MouseMove: mouse actions, with their x / y position and the Left button.
- Closing main menu and Team updated.
- User events, that you create yourself in
Systems manager > Events / States, and that objects send to each other with the Send event command. The Default project has Hero action (the hero presses the action key in front of something), Hero touch and Enemy touch.
Events can take parameters. For example, a Sword attack event can take a Power parameter, and each enemy decides what to do with it.

Don't use events for continuous physics like gravity or wind animations: they are for things that happen.
Reactions and commands#
A reaction is a list of commands executed one after the other: show a text, move an object, play a sound, change a variable, start a battle… Each event an object reacts to has its own reaction.

- Double click a command line to add or edit a command. The commands window lists every command by category, with a search box to find one quickly.
- Right click a command to copy, paste, cut, delete, disable it (it stays there but is skipped in the game) or test it.
- Select several commands with
Shift+ click (from one to another) orCtrl+A(all).
Every command is described in the Event commands reference.
Test a command without playing#
Right click a command and choose Test this command to see its result directly in the editor: a text box, a camera move, a screen tone… Test this command with options… lets you set the variables, items and currencies used for the test. The live preview can be turned off in Options > General options > Live preview command.

States#
An object has states, and it can be in several states at once. Each state has its own graphics, movement and reactions. A chest, for example, has a "closed" state with a reaction to open it, and an "opened" state with an open chest graphic and no reaction.
States are created in Systems manager > Events / States. Add a state to the object's list, then set its options:

- Graphics: the picture of the object in this state: a character, a tile of the tileset, a floor, an autotile, a 3D object… or nothing (an invisible trigger).
- Moving: how the object moves when no reaction is running.
- Type: Fix (doesn't move), Random, or Route: a loop of moves that you set with Edit route (the same moves as the Move object command).
- Speed and Frequency (the wait before the next move). Both lists are edited in
Systems manager > System.
- Move animation / Stop animation / Climb animation: animate the graphics while moving, standing still, or climbing.
- Direction fix: the graphics never turn (for example to look at the hero).
- Through: other objects can walk through it.
- Set with camera: the graphics turn with the camera orientation.
- Pixel offset: the walking animation goes 1 pixel down every two frames, a nice retro effect.
- Keep position: the object keeps its new position after leaving the map or loading a save.
- Detection: a detection used to send an event every frame (see Detections).
- Update transformations: rotate, scale or move the graphics.
A state can also have lights (a torch, a lamp…): see Lights & atmosphere.
Use the Change state command to switch states during the game.
Properties#
Properties are values stored on the object itself: its HP, its age, whether it was already talked to… Each copy of an object has its own values. Set a Name and an Initial value. They are read and changed with commands (see Variables & conditions).
Example: a treasure chest#
- In
Systems manager > Events / States, make sure you have a state for the opened chest (rename State 2 toOpened, for example). - Create an object with a closed chest graphic in its first state.
- In its reaction to Hero action: Play a sound, Modify inventory (add a potion), Show text "You found a potion!", then Change state: replace with the
Openedstate. - Add the
Openedstate to the object, with the open chest graphic and no reaction.


Common reactions#
When you copy the same commands again and again, make a common reaction in Systems manager > Common reactions, and run it with Call a common reaction. Common reactions can take parameters, for small variations. Block hero during reaction: the hero can't move until the reaction ends.
When a command lets you choose a common reaction, an edit button opens it directly.
Models#
A model is an object template, edited in Systems manager > Models. Make a Flower model that can be picked, then create objects on your maps that use the Flower model: they all behave the same, and changing the model changes them all.

Inheritance#
An object (or a model) that uses a model inherits everything from it: states, reactions and properties. You can then override parts of it:

- Badges show what comes From model, what Overrides model and what Partially overrides model.
- Override model on a state or a reaction makes a local copy you can change. Revert to model (or Revert all to model) goes back to the model's version.
- A property with the same name as one of the model replaces it.
- Models can use models themselves. RPM warns you if two models use each other in a loop.
The Default and Hero models#
- Default is the starting point of every new object you create. Change it to the options you use the most.
- Hero is the hero. By default it reacts to the key presses: the direction keys move it (Move object), the camera keys turn the camera (Move camera), Action sends the Hero action event to what is in front of the hero (Send event), and Main menu opens the main menu. Change these reactions to change how your game plays.
Map startup reactions#

In the map properties, Map startup reactions is an invisible object of the map. By default it reacts to the Time event with an interval of 0 and no repeat, so its commands run right when the hero enters the map: perfect for cutscenes and setting things up. You can test these commands directly from the map properties.
Detections#
Detections are areas used by the Send event command to know who receives an event. You already use one: the Hero action event is sent by the hero to the objects in the Front detection.
Detections are edited in Systems manager > System > Detections.

- The arrow shows the object sending the event and its orientation. Left click adds a box, right click removes one. Boxes can be moved, rotated and scaled.
- Field: how far the area goes on each side (Left, Right, Top, Bot).
- New box length / width / height: the size of the next boxes, in squares and pixels.
- Automatic: generate a circle (radius) or rectangle (length and width) of boxes.
The same detection can be used by many objects: a sword attack area, a guard's field of view, an explosion…
Next: store and test information with Variables & conditions.