An open library of RPG Maker MZ plugins, powered by the community.

PGMZ - The Community-Driven Plugin Library for RPG Maker MZ

MZ plugins

MNKR Point Scroll MZ - MNKR_PointScrollMZ.js

Plugin desc : You can scroll the screen by specifying a position or event.

License : MIT License

Author : munokura

Website : http://x.com/munokura

Desc page : https://raw.githubusercontent.com/munokura/MNKR-MZ-plugins/master/MNKR_PointScrollMZ.js

File name : MNKR_PointScrollMZ.js

Help of plugin :

@target MZ
@url https://raw.githubusercontent.com/munokura/MNKR-MZ-plugins/master/MNKR_PointScrollMZ.js
@plugindesc You can scroll the screen by specifying a position or event.
@author munokura
@license MIT License

@help
You can scroll the screen by specifying a position or event.

------------------------------------------------------
Usage
------------------------------------------------------
Use the plugin command or
Execute $gameMap.setPointScroll(pos, duration) in a script.
Pass pos as an array, such as [x,y] or [id].

Example 1
$gameMap.setPointScroll([0,0], 60);
Scrolls the screen over 60 frames (1 second) so that map coordinate 0,0 is the
center of the screen.

Example 2
$gameMap.setPointScroll([-1], 60);
Scrolls the screen over 60 frames (1 second) so that the player is the center
of the screen.

------------------------------------------------------
Plugin Command
------------------------------------------------------
*********************************************************
PointScroll x,y duration
Scrolls the screen over duration frames for coordinates x and y.

*****************************************************
EventScroll id duration
Scrolls the screen for the event with id duration frames.
Specifying 0 for id will target the triggered event,
while specifying -1 will target the player.

# Contact Information
This is a plugin originally created for RPG Maker MV ported for MZ.
Please contact the modifier for any inquiries.

# Terms of Use
MIT License.
http://opensource.org/licenses/mit-license.php
You may modify and redistribute this without permission, and there are no
restrictions on its use (commercial, 18+, etc.).

@command PointScroll
@text Scroll to map coordinates
@desc Scrolls the screen to map coordinates.
@arg Pos
@text Map Coordinates
@desc Specifies the map coordinates to move to.
@type string
@default 0,0
@arg duration
@text Travel time
@desc Specifies the number of frames to complete the scroll.
@type number
@default 60

@command EventScroll
@text Scroll to Events
@desc Scroll the screen to Events (Player).
@arg event
@text Destination event
@desc Specifies the event to move to.
@type number
@default 0
@min -1
@arg duration
@text Travel time
@desc Specifies the number of frames to complete the scroll.
@type number
@default 60

スポンサードリンク

-MZ plugins

Copyright© PGMZ - The Community-Driven Plugin Library for RPG Maker MZ , 2026 All Rights Reserved.