查看: 4640|回复: 3

[有事请教] 有大佬会修改MV版调整图块大小的插件让其兼容MZ版吗?

[复制链接]
梦石
0
星屑
1147
在线时间
186 小时
注册时间
2007-2-27
回帖
108
发表于 2020-9-13 19:43:08 | 显示全部楼层 |阅读模式

加入我们,或者,欢迎回来。

您需要 登录 才可以下载或查看,没有账号?注册会员

×
MV版调整图块大小的插件不完全兼容MZ版,行走图兼容,但是地图不兼容,希望大佬把MV版的ChangeTileSize.js插件修改一下,使它兼容MZ版,代码如下:
[pre lang="ruby"]//=============================================================================
// Change Tile Size
// by Shaz
// Last Update: 2015.10.21
//=============================================================================

/*:
* @plugindesc Allows maps based on a grid size other than 48x48
* @author Shaz
*
* @param Tile Size
* @desc Size of tiles (pixels)
* @default 48
*
* @param Tileset Image Folder
* @desc Folder where the in-game tilesets are kept
* @default img/tilesets/
*
* @param Parallax Image Folder
* @desc Folder where the in-game parallaxes are kept
* @default img/parallaxes/
*
* @help This plugin does not provide plugin commands.
*
* To use the map editor with tiles of a size other than 48x48 in your project,
* have two folders for tileset images.  The folder named in the plugin
* parameters is for original, high-quality, final-sized tiles.  The
* original folder, img/tilesets/ can contain a duplicate copy of each
* tileset, shrunk or enlarged to 48x48 pixels per tile.  Quality in the
* editor may be poorer, but the original tiles will be used in the game.
* The img/tilesets folder can be cleared prior to distribution.
*
* The same applies to the img/parallaxes folder if using a parallax map
* with a grid size other than 48x48.
*
*/

(function() {

  var parameters = PluginManager.parameters('ChangeTileSize');
  var tileSize = parseInt(parameters['Tile Size'] || 48);
  var tilesetsFolder = String(parameters['Tileset Image Folder'] || 'img/tilesets/');
  var parallaxesFolder = String(parameters['Parallax Image Folder'] || 'img/parallaxes/');

  ImageManager.loadTileset = function(filename, hue) {
    return this.loadBitmap(tilesetsFolder, filename, hue, false);
  };

  ImageManager.loadParallax = function(filename, hue) {
      return this.loadBitmap(parallaxesFolder, filename, hue, true);
  };

  Game_Map.prototype.tileWidth = function() {
    return tileSize;
  };

  Game_Map.prototype.tileHeight = function() {
    return tileSize;
  };

  Game_Vehicle.prototype.maxAltitude = function() {
    return tileSize;
  };

})();
[/pre]
梦石
0
星屑
22879
在线时间
8598 小时
注册时间
2011-12-31
回帖
3270
发表于 2020-9-14 08:08:16 | 显示全部楼层
https://forums.rpgmakerweb.com/i ... 25821/#post-1111158
Features

    Parallax Mapping
    Change Tile Size and Tileset Location
    Region Names
    Region Common Events
    Region Collision
    Disable Auto Shadows
    Disable Tilemap
    Change Balloons and Animations Z Index
    Call a Common Event whenever the map changes
    More to come
特征

     视差映射
     更改图块大小和图块集位置
     地区名称
     地区共同活动
     区域碰撞
     禁用自动阴影
     禁用图块地图
     更改气球和动画Z索引
     地图发生变化时,请致电共同事件
     还有更多
回复

使用道具 举报

梦石
0
星屑
1147
在线时间
186 小时
注册时间
2007-2-27
回帖
108
 楼主| 发表于 2020-9-14 10:07:34 | 显示全部楼层
tseyik 发表于 2020-9-14 08:08
https://forums.rpgmakerweb.com/index.php?threads/cyclone-maps-overlay-tile-size-region-names-region- ...

经测试,这个Cyclone-Maps.js插件依然存在和ChangeTileSize.js插件相同的问题,不能解决地图图块放大的问题,可能和MZ是多图层地图有关截图如下:
14.png
回复

使用道具 举报

梦石
0
星屑
1147
在线时间
186 小时
注册时间
2007-2-27
回帖
108
 楼主| 发表于 2020-9-14 10:08:14 | 显示全部楼层
本帖最后由 fhxy 于 2020-9-14 10:29 编辑

我要达到的是ChangeTileSize.js插件在MV上实现的效果,效果图截图如下:
15.png
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册会员

本版积分规则

Powered by Discuz! X5.0 © 2001-2026 Discuz! Team.

在本版发帖返回顶部