じ☆ve冰风 发表于 前天 08:43

Fog

Fog

2015.10.31

by Shaz

Introduction

This plugin allows you have a moving fog overlay on a map.

How to use

Add to your plugins folder (file name should be Fog.js).  There are no parameters to set.

Create a folder called fogs in your img folder.  Save the fog file in there.

Plugin call:

ChangeFog filename scroll-x scroll-y opacity

scroll-x and scroll-y indicate the movement (negative numbers move up or left, positive numbers move down or right).

opacity is 0-255

scroll-x, scroll-y and opacity can all be numbers or a formula (eg - $gameVariables.value(15) to pull the value from a variable).

You can call multiple times on the same map to speed up or slow down the fog movement.

Fog is removed when you leave the map.

Plugin

Download from pastebin

Credit

- Shaz

Terms

- free for use in commercial games


本贴来自国际rpgmaker官方论坛作者:Shaz处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:https://forums.rpgmakerweb.com/threads/fog.48653/
页: [1]
查看完整版本: Fog