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

[转载发布] Multi Layer Fog

[复制链接]
累计送礼:
0 个
累计收礼:
1 个
  • TA的每日心情
    开心
    2026-7-12 04:10
  • 签到天数: 209 天

    连续签到: 2 天

    [LV.7]常住居民III

    9068

    主题

    864

    回帖

    6万

    积分

    管理员

    Rank: 9Rank: 9Rank: 9

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

    灌水之王

    发表于 3 天前 | 显示全部楼层 |阅读模式
    Multi Layer Fog 1.0
    Shaz

    Introduction
    This script allows you to add multiple fog layers to your map and control the appearance and behaviour of them individually.

    Features
    - Show fog between the parallax background and the map
    - Show fog above the map
    - Set different fog layers to scroll in different directions and at different speeds
    - Change fog tone over time
    - Change fog opacity over time
    - Choose whether fog is cleared when going to a new map
    - Choose whether fog on a map carries through to battle screens

    How to Use
    Installation
    Paste into a new script slot below Materials.

    Customization
    BATTLE_FOGS - set to true to show fog on battle screens (default), or false to show fog only on the map
    CLEAR_ON_TRANSFER - set to true to remove all fog when changing maps (default), or false to keep fog until removed manually (false will make fog behave like pictures)

    Using Fog
    The following commands are all made via Call Script event commands.



                    Code:       
    1. show_fog(id, "filename", hue, opacity, blend_type, zoom, speed_x, speed_y, z)
    复制代码

    will add the fog to the map. id is an array index (like picture numbers), and is used to further control fog with other commands.
    Only id and filename are mandatory.
    z, if used, should be greater than -100 and less than 0 to display fog between the parallax background and the map. If not used, fog will be shown above characters; fogs with a higher id will be shown above those with a lower id.

                    Code:       
    1. tint_fog(id, red, green, blue, gray, duration)
    复制代码

    will change the tint/tone of the fog over the duration (in frames)

                    Code:       
    1. fade_fog(id, opacity, duration)
    复制代码

    will change the opacity of the fog over the duration (in frames)

                    Code:       
    1. erase_fog(id)
    复制代码

    will remove the fog with that id


    Script
    Get it here
    Version 2 here (to address the 'fog sticks to player' issue)

    Credit and Thanks
    - credit Shaz

    Author's Notes
    Free for use in commercial games. Give credit.

    Updates
    2021.02.27 - added fix to both versions for blend type, where fog on new map would have same blend type as fog on old map.  Thanks to BrokenAnkle21 for this fix.


    本贴来自国际rpgmaker官方论坛作者:Shaz处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:https://forums.rpgmakerweb.com/threads/multi-layer-fog.18835/
    天天去同能,天天有童年!
    回复 送礼论坛版权

    使用道具 举报

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

    本版积分规则

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

    幸运抽奖

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

    立即查看

    聊天机器人
    Loading...

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

    GMT+8, 2026-8-8 07:55 , Processed in 0.115753 second(s), 54 queries .

    Powered by Discuz! X3.4

    Copyright © 2001-2020, Tencent Cloud.

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