Unlimited Fogs
#1
Unlimited Fogs
Version: 1.5
Based on version 1.2 by game_guy



Introduction

Ever need more than one fog for a map? Maybe more than two fogs? With this unique script, you can have unlimited fogs on one map! And with a few easy script calls, you can customize every aspect of a fog at anytime!

Do be aware, the fogs applied with this script only appear after the field map(s) have been entered. As fast as it may be, only those fogs that are attached to tileets are created simultaneously. Fortunately,this script is only a supplement, able to work in tandem with the default system.



Features
  • Unlimited Fogs on Any Map
  • Change Fog's properties at any time
  • Easy to use script calls
  • Does not replace the existing fog system
  • Fog addition system functional with parallel processes (new v 1.4)
  • Missing fog files no longer crash the game (new v 1.3)
  • Fogs restore when exiting menu or loading saves (new v 1.5)



Script

Enjoy



Instructions

Paste below Scene_Debug and above main. If used with any other script that alters the environment, place Unlimited Maps below them in order to take advantage of its custom script calls.

As there isn't anything to configure, let's get onto the script calls!



Compatibility

Designed for RPGMaker XP. Compatible with the default scripts and scripts that do not adversely alter the fog system.



Credits and Thanks

Initial version by game_guy
LiTTleDRAgo for the original idea
Heretic for the Fog-Backup system



Terms and Conditions

Free for use, even in commercial scripts. Due credit to all involved is the only requirement.
Up is down, left is right and sideways is straight ahead. - Cord "Circle of Iron", 1978 (written by Bruce Lee and James Coburn... really...)

[Image: QrnbKlx.jpg]
[Image: sGz1ErF.png]    [Image: liM4ikn.png]    [Image: fdzKgZA.png]    [Image: sj0H81z.png]
[Image: QL7oRau.png]    [Image: uSqjY09.png]    [Image: GAA3qE9.png]    [Image: 2Hmnx1G.png]    [Image: BwtNdKw.png%5B]
  Above are clickable links
Reply }
#2
BUMPING UP
to Version 1.5

This update fixes an issue with the assistance of code created by Heretic.  This code provided a backup of all fogs created by the system and restored the fogs when you exited the menu and/or loaded a saved game.

Until then, the fogs would merely vanish upon entering the main menu, for them not to be present anymore. But now, that issue is no longer the case.

Also, the instructions now include general information on the z-depths (or altitudes) you may set fogs, if you want them above the generated weather, above the default fog layer, or if below the tileset or even below the default panorama itself.
Up is down, left is right and sideways is straight ahead. - Cord "Circle of Iron", 1978 (written by Bruce Lee and James Coburn... really...)

[Image: QrnbKlx.jpg]
[Image: sGz1ErF.png]    [Image: liM4ikn.png]    [Image: fdzKgZA.png]    [Image: sj0H81z.png]
[Image: QL7oRau.png]    [Image: uSqjY09.png]    [Image: GAA3qE9.png]    [Image: 2Hmnx1G.png]    [Image: BwtNdKw.png%5B]
  Above are clickable links
Reply }
#3
Hey DerVVulfman,
I have a question: Is it normal for the fog's position to reset during a scene transition?
I noticed that every time, for example, when switching from Scene_Menu to Scene_Map, the fog's position resets to its initial starting point.
I create games as a hobby. I do scripting when it almost seems impossible to code.
My games are only in German, so there is no English version. :( wah...
Reply }
#4
I see what you mean. This release fixed a few issues, but was based upon the original structure of game_guy's original.

Allow me to explain.

The default fog system processes the fog's x/y offset through the Game_Map class. The data of the game map does not change unless the player switches over to a new map. Thus, the x/y coordinates do not reset with the default map.

This edition uses Game_Guy's approach whereby the map coordinates are updated within the Spriteset_Map class, and the spriteset itself resets on any instance it being called, such as returning to the map. As such, the x/y coordinates refresh and restart.

Seeing that, I may look towards a rework in the future.
Up is down, left is right and sideways is straight ahead. - Cord "Circle of Iron", 1978 (written by Bruce Lee and James Coburn... really...)

[Image: QrnbKlx.jpg]
[Image: sGz1ErF.png]    [Image: liM4ikn.png]    [Image: fdzKgZA.png]    [Image: sj0H81z.png]
[Image: QL7oRau.png]    [Image: uSqjY09.png]    [Image: GAA3qE9.png]    [Image: 2Hmnx1G.png]    [Image: BwtNdKw.png%5B]
  Above are clickable links
Reply }


Possibly Related Threads…
Thread Author Replies Views Last Post
   Unlimited Save Files RPG Advocate 0 4,638 03-03-2008, 06:16 AM
Last Post: RPG Advocate



Users browsing this thread: 4 Guest(s)