Welcome to PGMZ! My goal is to make it easy for everyone to find and share great plugins for creating amazing games. As a plugin developer myself, I'm excited to grow this community with all of you.
NRP Scroll Lock Half Tile - NRP_ScrollLockHalfTile.js
Plugin desc : v1.00 Lock scrolling when the screen drawing width is halfway across the screen.
License :
・Copyright: Retained
・Commercial Use: Allowed
・Modification: Allowed
・Redistribution: Allowed
・Details: See Download Page / In-plugin documentation
Author : Takeshi Sunagawa (http://newrpg.seesaa.net/)
Website : https://github.com/NewRPGProject/MZMV_Plugin/blob/main/NRP_ScrollLockHalfTile.js
Desc page : https://newrpg.seesaa.net/article/491567097.html
Download Page : https://raw.githubusercontent.com/NewRPGProject/MZMV_Plugin/main/NRP_ScrollLockHalfTile.js
File name : NRP_ScrollLockHalfTile.js
Help of plugin :
Lock scrolling when the screen drawing width * is halfway across the screen. * Specifically, I am assuming an even number of tiles corresponding * to the screen width. * * For example, if the screen width is 960 pixels, * the default 48-pixel tile is equivalent * to 20 The default 48-pixel tile is equivalent to 20 tiles. * * In this case, if the player is placed in the center of the screen * with the scroll type not looping, * the leftmost and rightmost tiles are only half visible. * * In this situation, if you want to make a map that fits on one screen, * you can set the number of horizontal tiles on the map to 21. * However, if the player moves left or right, * there will be scrolling in the middle of the map. * * Therefore, this plugin automatically fixes scrolling. * In doing so, the scroll position is also fixed * at the center of the screen. * * ------------------------------------------------------------------- * [Terms] * ------------------------------------------------------------------- * There are no restrictions. * Modification, redistribution freedom, commercial availability, * and rights indication are also optional. * The author is not responsible, * but will deal with defects to the extent possible. * * @------------------------------------------------------------------ * @ Plugin Parameters * @------------------------------------------------------------------ * * @param HorizontalScrollLock * @type boolean * @default true * @desc Fix horizontal scrolling when conditions are met. * * @param VerticalScrollLock * @type boolean * @default true * @desc Fix vertical scrolling when conditions are met.