设为首页收藏本站同能贴吧 切换语言 繁体中文
开启辅助访问 切换到窄版
扫描二维码关注官方公众号
返回列表
+ 发新帖
查看: 80|回复: 0

[制作教程] How to make a map automatically transparent

[复制链接]
累计送礼:
0 个
累计收礼:
1 个
  • TA的每日心情
    开心
    4 天前
  • 签到天数: 209 天

    连续签到: 2 天

    [LV.7]常住居民III

    4609

    主题

    864

    回帖

    2万

    积分

    管理员

    Rank: 9Rank: 9Rank: 9

    VIP
    7
    卡币
    23225
    OK点
    16
    推广点
    0
    同能卷
    50
    积分
    28728

    灌水之王

    发表于 2026-7-8 11:33:24 | 显示全部楼层 |阅读模式
    I will explain how to automate tile transparency using the map mask function.
    By making full use of the main features of the four plugins, overpasses, hidden passages, buildings, and objects will automatically become transparent when the player steps into specific regions.
    All it requires is to set some simple parameters and common events.
    Transparency can also be added to events, allowing you to think in a way that is an extension of traditional map production!




    Plugins Used
    PluginCommonBase

    A versatile plugin with various functions that comes with MZ.
    You can use control characters in plugin commands, and you can add the same tag multiple times to a note.
    However, it is meaningless unless the plugin is compatible with PluginCommonBase.

    NRP_OverpassTile
    An overpass plugin released by Takeshi Sunagawa.
    An enhanced version of OverpassTile that comes with MZ, it applies layer 1 and 2 pass judgment when the player is under an overpass, and layer 3 and 4 pass judgment when the player is above an overpass.
    You can also specify multiple regions and terrain tags to be used for overpasses.

    RegionBase
    An efficiency plugin created by Triacontan and included with MZ.
    It allows you to execute common events when the player leave the region, step on the region, or move one step on the region.

    TileMask
    This is a plugin released by Awayamatana that allows you to make tiles partially transparent or filled in.
    You can decide the settings for each region.
    You can also paste the region settings to any coordinate to apply only the settings without changing the region ID of that square.

    Videos
    https://twitter.com/i/web/status/1886897526042976660
    https://twitter.com/i/web/status/1888641104712745354

    Instructions
    Creating events

    1. Add Overpass Regions with NRP_OverpassTile.




    2. Create a common event that masks the region at the current location and a common event that unmasks it.







    3. In RegionBase, set common events to occur when entering and leaving an area.
    For the common event "Mask Tiles" select the trigger "Execute only once when entering an area", and for the common event "Unmask Tiles" select the trigger "Execute only once when leaving an area".
    Add this for each region.




    4. Now you're ready to automate everything. Of course, if the player is on the overpass, the tiles will not be transparent.
    It might be interesting to try changing the transparency depending on the map ID or region ID.



    *Tiles with a ☆ on the top half and a 〇 or × on the bottom half, such as trees and streetlamps, will only have the top half transparent, resulting in a strange display.
    In such cases, use the CharacterGraphicExtend <CGTile: page,width,height> tag and Priority [Same as characters] to make it an event where the object stands upright.
    Finally, add the <tileMask:upper> tag to complete a transparent object that matches the transparency of the upper tiles.
    If the image is too transparent, you can adjust the ratio applied using the <tileMaskRatio: ratio> tag.

    What? Not enough tile slots to represent both exterior and interior?
    Use TilesetEx.
    (If you don't care, just ignore this note.)

    Creating a map
    Just follow the instructions for using NRP_OverpassTile and it will automatically become transparent.

    1. Place the ground on layers 1 and 2.




    2. Place a ceiling (or overpass) on layers 3 and 4.




    3. Place a region on each part.




    4. This will make hidden passages and overpasses transparent.





    本贴来自国际rpgmaker官方论坛作者:Awayamatana处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:https://forums.rpgmakerweb.com/threads/how-to-make-a-map-automatically-transparent.177811/

    本帖子中包含更多资源

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

    x
    天天去同能,天天有童年!
    回复 送礼论坛版权

    使用道具 举报

    文明发言,和谐互动
    文明发言,和谐互动
    高级模式
    您需要登录后才可以回帖 登录 | 立即注册

    本版积分规则

    简体中文
    繁體中文
    English(英语)
    日本語(日语)
    Deutsch(德语)
    Русский язык(俄语)
    بالعربية(阿拉伯语)
    Türkçe(土耳其语)
    Português(葡萄牙语)
    ภาษาไทย(泰国语)
    한어(朝鲜语/韩语)
    Français(法语)
    关闭

    幸运抽奖

    社区每日抽奖来袭,快来试试你是欧皇还是非酋~

    立即查看

    聊天机器人
    Loading...

    QQ|Archiver|手机版|小黑屋|同能RPG制作大师 ( 沪ICP备12027754号-3 )

    GMT+8, 2026-7-16 17:31 , Processed in 0.151214 second(s), 53 queries .

    Powered by Discuz! X3.4

    Copyright © 2001-2020, Tencent Cloud.

    快速回复 返回顶部 返回列表