Quantcast
Channel: RGSS3 Scripts (RMVX Ace) Latest Topics
Viewing all articles
Browse latest Browse all 416

Multi Layer Fog

$
0
0

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.



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.
 
tint_fog(id, red, green, blue, gray, duration)
will change the tint/tone of the fog over the duration (in frames)
 
fade_fog(id, opacity, duration)
will change the opacity of the fog over the duration (in frames)
 
erase_fog(id)
will remove the fog with that id


Script
Get it here


Credit and Thanks
- credit Shaz

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

Viewing all articles
Browse latest Browse all 416

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>