MZ Couch Co-op plugin

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?




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​

action.PNG



Notetags​


  • To make an actor or event controllable by Player 2, add the following notetag in their notes:
<player 2>




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​


tags.PNG




️ 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.
This is amazing!
It would be great to have local PVP too, perhaps using Wi-Fi or Bluetooth. But I think cooperative multiplayer is already a great initiative, congratulations!
This looks like a really cool plugin! I can't wait to see more updates as you progress through development on this. It's definitely something I haven't been able to find anywhere else, and something I'd love to see in more RPG Maker games.

I'm not sure how complex it would be, but if you're looking for suggestions, adding the ability to plug in a second controller to control the second character would be a cool feature, too.
It's definitely something I haven't been able to find anywhere else,
Don't know if the OP is still working on this but OcRam also has a couch co-op plugin
great!

Original thread: https://forums.rpgmakerweb.com/threads/couch-co-op-plugin.177667/