PLK_MoveMousePlayer
A downloadable tool
Buy Now$3.00 USD or more
* Terms of Use * No duplication or distribution is permitted. Can be used in commercial games I ask you to specify "Palatkorn" in your game credits only
Plugin Command | Parameters | Description | Notes |
startTracking | – | Activates Tracking Mode by saving the current camera position, displaying the tracking icon above the player’s head, and disabling keyboard movement. | While in tracking mode, the player will not respond to keyboard movement commands. |
stopTracking | – | Deactivates Tracking Mode by instructing the camera to smoothly return to the saved position. Once the camera returns, the tracking icon is removed and keyboard movement is re-enabled. | During the camera's movement back (when cameraMoving is true), the player cannot move. |
toggleTracking | – | Toggles the tracking mode. If it is active, it exits tracking mode and returns the camera to the saved position. If it is inactive, it activates tracking mode and saves the current camera position. | Requires possession of the specified item (as defined by the parameter itemId) to toggle the mode. |
setDisableClick | disable: "true" or "false" | Sets whether mouse/touch clicks are disabled while in tracking mode. | When set to "true", mouse and touch clicks will be prevented during tracking mode. |
stopAll | – | Stops all movement of both the player and the camera. | Useful for temporarily freezing movement. |
resumeAll | – | Resumes movement for both the player and the camera from their stopped state. | When invoked, tracking mode is reactivated and the tracking icon is displayed again. |
moveCameraTo | xCoord (X position), yCoord (Y position), cameraSpeed (speed) | Smoothly moves the camera so that the specified coordinates (xCoord, yCoord) become the center of the screen, while saving the original camera position. | xCoord and yCoord refer to positions on the map; a lower cameraSpeed value results in slower movement. |
returnCamera | cameraSpeed (speed) | Smoothly returns the camera to the previously saved position (from a moveCameraTo command or when exiting tracking mode). | This command works only if the original position was saved. |
Key Controls
- T (or the key defined by the
toggleKey
parameter):- When pressed while the player is not in tracking mode: The system enters Tracking Mode by saving the current camera position, displaying the tracking icon, and disabling keyboard movement.
- When pressed while the player is in tracking mode: The system instructs the camera to smoothly return to the saved position. During this camera movement, keyboard movement remains disabled until the camera has fully returned.
This table summarizes the key commands and main functionalities of the plugin so that you can use it correctly and completely in your RPG Maker MZ project.
Purchase
Buy Now$3.00 USD or more
In order to download this tool you must purchase it at or above the minimum price of $3 USD. You will get access to the following files:
PLK_MoveMousePlayer.js 170 kB
Leave a comment
Log in with itch.io to leave a comment.