- Introduction
- Installation
- Plugin Configuration
- Setting Up Interactive Objects
- Player Movement
- Customizing the Point-and-Click Menu
- Handling Menu Actions
- Troubleshooting
- Advanced Usage
This guide covers the usage of two interdependent plugins for RPG Maker MV:
- PointClickAdventure.js (v1.1): Adds a point-and-click style interaction menu to your game.
- DoubleClickMovement.js (v1.1): Enables player movement via double-clicking on the map.
These plugins work together to create a classic point-and-click adventure game interface in your RPG Maker MV projects.
- Download both
PointClickAdventure.jsandDoubleClickMovement.jsfiles. - Place both files in your project's
js/pluginsfolder. - Open your project in RPG Maker MV and go to the Plugin Manager.
- Find "DoubleClickMovement" in the list and activate it by checking the box next to it.
- Find "PointClickAdventure" in the list and activate it by checking the box next to it.
- Ensure that "DoubleClickMovement" is placed above "PointClickAdventure" in the plugin list.
- Click "Apply" to save your changes.
You can configure the double-click threshold in the plugin parameters:
- Double Click Threshold: Time in milliseconds between clicks to register as a double-click (default: 300)
To change this:
- In the Plugin Manager, click on the "DoubleClickMovement" entry.
- Adjust the "Double Click Threshold" parameter as needed.
- Click "Apply" to save your changes.
This plugin does not have configurable parameters in the Plugin Manager.
To make an object on your map interactive with the point-and-click menu:
- Create an event on your map that represents the object you want to be clickable.
- Open the event's properties.
- In the "Note" field, add the following tag:
<PointClickMenu> - This tag tells the plugin that this event should respond to double-clicks with the point-and-click menu.
With DoubleClickMovement.js active, players can move around the map by double-clicking:
- Double-click on any walkable tile on the map.
- The player character will automatically find a path to the clicked location and move there.
- If there's no valid path, the character won't move.
The default menu includes four options: Inspect, Talk, Use, and Pick-up. To customize these options:
- Open the
PointClickAdventure.jsfile in a text editor. - Locate the
makeCommandListfunction:Window_PointClickMenu.prototype.makeCommandList = function() { this.addCommand('Inspect', 'inspect'); this.addCommand('Talk', 'talk'); this.addCommand('Use', 'use'); this.addCommand('Pick-up', 'pickup'); };
- Modify, add, or remove lines to change the menu options.
- Make sure to update the corresponding handler functions in the
Scene_Map.prototypesection if you change the command names.
The PointClickAdventure.js plugin provides basic console logging for each action. To implement specific behaviors:
- Open the
PointClickAdventure.jsfile. - Find the action handler functions:
Scene_Map.prototype.onInspect = function() { console.log("Inspect action selected"); this.closePointClickMenu(); };
- Replace the
console.logstatement with your desired behavior, such as displaying a message, changing a switch, or running a common event.
-
If the menu doesn't appear when double-clicking objects, ensure that:
- Both plugins are properly installed and activated.
- The plugins are in the correct order in the Plugin Manager.
- The event has the correct
<PointClickMenu>note tag. - There are no conflicting plugins that might interfere with mouse input.
-
If the menu appears but doesn't do anything when options are selected, check that you've properly implemented the action handler functions.
- If double-clicking doesn't move the character, check:
- The plugin is activated in the Plugin Manager.
- The "Double Click Threshold" isn't set too low or too high.
- There are no other plugins conflicting with map movement.
- You can extend the functionality of both plugins by adding new methods to the
Scene_Map.prototype. - Consider adding conditional logic to the action handlers in PointClickAdventure.js to create more complex interactions based on game variables or switches.
- You might want to add a way to disable the point-and-click functionality or double-click movement in certain situations (e.g., during cutscenes or battles).
- The pathfinding algorithm in DoubleClickMovement.js can be optimized or modified for more complex map layouts if needed.
For any additional support or questions, please contact Midnight Roach Media through [Your preferred contact method or support forum].