Transparent Tile v1.13
by Drag & Plugin
Introduction
A plugin to apply transparency effect on any tile(s) on specific layer(s).
Features
This plugin allow to apply a transparency effect on one or multiple tiles, specified by x, y and z value, without requiring to edit your tileset with a software application for image editing (like Photoshop or Gimp) nor to use parralax mapping solutions.
This plugin also have a built-in compatibility with my
Tilemap Mask plugin, allowing you to exclude transparencified tiles locations from the mask.
This plugin is still in a very alpha state. Please, use it without expecting it to be perfect. If you are experiencing any bug or if you have any suggestion, please contact me !
Screenshots
ABOUT THE PLUGIN COMMANDS :
- Apply Transparency to Tile
This plugin command will set the tile at the specified x, y and z transparent, at the specified opacity value.
- Apply Transparency to Several Tiles
This plugin command will set the tile at the specified x, y and z a transparency effect should be applied. The rectangle will be calculated depending on the x, y coordinates of the start point (top left of the rectangle) and the end point (bottom right of the rectangle).
- Clear Transparency
This plugin command will delete the transparency effect at the tile to the specified x, y, z coordinates, reverting it back to its original state.
- Clear Transparency to Every Tiles
This plugin command will delete every transparency effect, reverting back all modified tiles to their original state.
ABOUT THE MAP NOTETAGS :
You can use the following notetags in your MAP settings :
<transparentTile: x>
This notetag will try to detect automatically what should be "transparentified" around your player, depending on the x value.
Tiles that will be detected will be those who are set to the "star" passage value in your tileset, so in short term, tiles that will drawn over your character.
Ex : <transparentTile: 1> will set that behaviour to a range of 1 tile around the player.
<transparentTile: group>
This value for the transparentTile notetag will "transparentify" each tile behind which your player will go, as well as every other tiles that are connected to the first one and which are drawn over your character too.
In short term, it will apply a transparency on a whole group of tile.
<transparentTileOpacity: opacity>
This notetag will specify what opacity value to apply on tiles "transparentified" with the <transparentTile> notetag. If this notetag is not present, a default value of 255 will be applied.
Ex : <transparentTileOpacity: 127>
<transparentTileLayer: z>
This notetag will specify on which layer to look for tiles to "transparencify" with the <transparentTile> notetag. If this notetag is not present, every layer will be invastigated.
Ex : <transparentTileLayer: 1>
<transparentTileFadeOut: seconds>
This notetag will specify the fade out transition duration in seconds when tile(s) is being "transparencified". If this notetag is not present, the transition will be instant.
Ex : transparentTileFadeOut: 1>
Download
Drag's Transparent Tile for MZ
Terms and Credits
1. This plugin can be used in free or commercial games on the sole condition that this plugin has been legally acquired (through purchase and or download from
https://drag-and-plug-in.itch.io/).
2. The author of the plugin must be creditted under the name of "Drag & Plug-in".
3. You can edit as much as you want the source code, but I do not take responsibillity for the plugin in that case. This apply for custom code used in the plugin parameters.
4. Any redistribution of this plugin is strictly forbidded, as well as using part of the source code as your own.
5. The author of the plugin is not responsible for problems in your game due to unintended usage, incompatibility with other plugins nor plugin not up to date.
Tileset used in the gif : the amazing
Caz's Pixel Fantasy RMMZ RTP Tiles
本贴来自国际rpgmaker官方论坛作者:Drag处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:
https://forums.rpgmakerweb.com/threads/drags-transparent-tile-for-mz.144559/