Change Tile Size

Thanks for the great plugin!

I would like to suggest two additions to it:

First, after the line "Fomar.TileSize.tileSize = [...];", I would add:

Fomar.TileSize.factor = 48 / Fomar.TileSize.tileSize;

Then, before "ImageManager.loadTileset = [...]", I would add:

Game_CharacterBase.prototype.shiftY = function() { return this.isObjectCharacter() ? 0 : Math.round(Fomar.TileSize.tileSize/8); }; Game_CharacterBase.prototype.jumpHeight = function() { return ( (this._jumpPeak * this._jumpPeak - Math.pow(Math.abs(this._jumpCount - this._jumpPeak), 2)) / (2*Fomar.TileSize.factor) ); };

This scales the character Y shift according to the new tile size, as well as the jump height. While I was using the plugin, I noticed that these parameters did not appear properly with the new tile size, that's why.
Hi!! How do you use this, sorry? I'm a noob and with other plug-ins I've seen it's a .js file but this one is the script itself, so how do I download it or put it in RPG Maker?

I really hope I can use this, it would be a lot easier to create the vision I have for my game with this!

Thanks 🙂
Tile Size
Version 1.0
by Fomar0153
​

Description
Allows you to use tilesets of different sizes in RPG Maker MZ.

Features
Easily use resources from older rpg makers!

Screenshots
[IMG width="400px"]https://i.imgur.com/I2YeH69.png[/IMG]
[IMG width="400px"]https://i.imgur.com/5Cbi2PY.png[/IMG]
Top: 64px tile; Bottom: 32px tiles

How to Use
Place the plugin in your project's js/plugins/ folder.
Inside RPG Maker MZ's editor, open the Plugin Manager.
Create a new entry and select this plugin from the list.
Customise the options to your liking and then click ok.

Ok so how this works is there are two copies of the tileset, one for the editor and one for the game.
They must have the same name, except the editor version has an additional string, (the key string from the plugin manager).
For example:
Ace64Dungeon_A5.png (this is the 64 pixel version the game will use)
!Ace64Dungeon_A5.png (this is the 48 pixel version the editor will use, note it has ! - the default key string)

You are welcome to use my resource converters to faciliate using this plugin:
https://rpgmakeronline.org/converters/

Download
Click here.

FAQ
Q: My map looks like garbage.
A: Please double check you have your tilesize set to the correct width/height.

Credits
Fomar0153

Terms of Use
As long as I am credited, you may use this plugin in your projects both commercial and non-commercial.
I've seen it's a .js file but this one is the script itself, so how do I download it or put it in RPG Maker?
That's the code inside the JS file.
Just right click and save content as..
or right click on the link and save content as..
Thanks the plugin is great, but for some reason it only works with my Tileset A5. A1-A4 are stretched and B-E are not shown at all. I can't find what stupid thing I did wrong. Please help!
Please correct me if I am wrong.
After hours of testing I come to believe that by chance A5 was my only image that wasn't to big to load. Thus this Plugin won't work with my 72x72 tiles. My solution is to combine your approach with the plugin from brogar https://forums.rpgmakerweb.com/inde...-allowing-tilesizes-larger-than-64x64.156104/
I make two tilesets, one with the standard 48 tiles for the editor and one with the resized ones. Then before I start the game, I change the tileset to the resized, so I have the right tile size in-game.

Original thread: https://forums.rpgmakerweb.com/threads/change-tile-size.125893/