Co-Op Plugin for RPG Maker MZ
I’ve developed a plugin that adds a local co-op mode to RPG Maker MZ, allowing a second player to control a character (or even an event) using WASD + Spacebar. It’s great for adventure games, two-player puzzles, or local minigames on the same keyboard. The system includes a selection menu to choose which character Player 2 will control, and it displays a custom name and icon above them.
I'm still refining and expanding its features, and I’d love to hear your feedback.
Do you have any suggestions, tips, or interest in collaborating on the development?
This plugin adds a co-op mode to RPG Maker MZ, allowing a second player to control a character or event using the WASD keys and Spacebar.
Joelysom de Exu Mirim
I’ve developed a plugin that adds a local co-op mode to RPG Maker MZ, allowing a second player to control a character (or even an event) using WASD + Spacebar. It’s great for adventure games, two-player puzzles, or local minigames on the same keyboard. The system includes a selection menu to choose which character Player 2 will control, and it displays a custom name and icon above them.
I'm still refining and expanding its features, and I’d love to hear your feedback.
Do you have any suggestions, tips, or interest in collaborating on the development?
Plugin Documentation: Co-Op.js
Description
This plugin adds a co-op mode to RPG Maker MZ, allowing a second player to control a character or event using the WASD keys and Spacebar.
Author
Joelysom de Exu Mirim
Compatibility
- Target: RPG Maker MZ
Plugin Command
selectCoOpCharacter
- Name: Select Co-Op Character
- Description: Opens a selection window to choose which character Player 2 will control.
️ Player 2 Controls
Notetags
- To make an actor or event controllable by Player 2, add the following notetag in their notes:
Main Features
Co-Op Selection Window
- Accessible through the game menu (Co-Op command).
- Displays all party members (excluding the leader).
- Allows selecting which character Player 2 will control.
- Dynamically updates the <player 2> notetag.
Follower Control
- Characters marked with <player 2> do not follow the leader automatically.
- They are manually controlled.
- If they stray too far from Player 1, they are teleported back automatically.
Movement Logic
- Player 2 moves independently.
- Other followers maintain formation by following the last valid character.
Character Name Display
- A small popup window appears above characters controlled by Player 2.
- Displays the actor’s name (or event name).
- A “P2” icon is shown next to the name (image must be in /img/pictures/P2.png).
Internal Structure
Added Components
️ Requirements
- Create a P2.png image in img/pictures/ (ideal size: 24x24px).
- Activate the plugin in the correct order in the Plugin Manager.
Notes
- Only one character can be tagged with <player 2> at a time.
- WASD and Spacebar are exclusively reserved for Player 2.
- You can integrate gamepad or remapping support with other plugins if needed.
Use Case Suggestions
- Ideal for local co-op experiences.
- Great for minigames, two-player puzzles, or exploration-based gameplay.
- Use the selectCoOpCharacter command to let players switch control freely.
Potential Future Improvements
- Support for additional players (Player 3, Player 4, etc.).
- Auto-detection when Player 2 becomes idle or disconnected.
- Real-time character swapping without opening the menu.