[XP] Heretic's Cloud Altitude

Started by Heretic86, November 24, 2012, 06:09:24 pm

Previous topic - Next topic

Heretic86

November 24, 2012, 06:09:24 pm Last Edit: May 03, 2015, 04:32:35 am by Heretic86
Heretic's Cloud Altitude
Authors: Heretic
Version: 2.3
Type: Enviornmental Simulation
Key Term: Custom Environment System



Introduction

This script will turn your Fog into Clouds!


Features


  • Makes Fog appear to be above the Player by messing with Movement

  • Compatible with 8 Directional Movement Scripts

  • Clouds can go Below Terrain by using a Negative Altitude

  • Contains additional Scripts for changing settings in Demo




Screenshots

Unable to show a screenshot that allows you to tell the difference between Fog and Clouds.  You'll have to grab the Demo and see for yourself.


Demo

http://downloads.chaos-project.com/heretic86/HereticsCloudAltitude2.3.exe

Updated to 2.0 for compatability with Unlimited Fogs
Updated to 2.1 for compatability with Waves
Updated to 2.2 for compatability with Heretic's Looping Maps
Updated to 2.3 for Bugfix where exiting Menus would cause "snapping".  Also corrects this bug on Unlimited Fogs.

http://downloads.chaos-project.com/heretic86/HereticsCollectionVer2.exe (Alternate Link)



Script

Script is in the Demo.



Instructions
Just put above Main.

Set the Altitude by running a Script: "set_cloud_altitude( altitude, x[optional], y[optional])"
X and Y are speeds.  You can use Negative Numbers for all of the parameters.


Compatibility

No known issues.  If you find one, please let me know and I promise to laugh at you, then I'll try to fix it, I swear!


Credits and Thanks


  • Heretic - Hey, thats me!

  • ForeverZer0 - Thanks for getting me started on this script!




Author's Notes

Fog with a High Altitude is a Cloud.  A Cloud with no Altitude is a Fog.  Clouds can have a Negative Altitude, which allows them to show below your Terrain and over any Panoramas.  I've found that setting an Altitude of -12 seems to work pretty well, especially when there is no X or Y speeds.

There is an additional script provided in the Demo that shows you information on your current Cloud Settings.  This script also allows you to change those settings in the Demo without having to restart each time you want to change a setting.  It is a separate script because you probably dont want your Players to be able to adjust the Cloud Settings the way you can in the Demo.
Current Scripts:
Heretic's Moving Platforms

Current Demos:
Collection of Art and 100% Compatible Scripts

(Script Demos are all still available in the Collection link above.  I lost some individual demos due to a server crash.)

G_G

Bad ass effect Heretic. Very nice job! *moves*

finalholylight

Would you mind making this script compatible with H-mode7 script.

Heretic86

Quote from: finalholylight on November 24, 2012, 11:59:46 pm
Would you mind making this script compatible with H-mode7 script.


In order to accomplish that, it would require rewriting of the H-mode7 entirely more than it would just making simple modifications to this script.   I think you would have better luck with asking the author of the H-mode7 script to incorporate layered clouds as a visual effect. 
Current Scripts:
Heretic's Moving Platforms

Current Demos:
Collection of Art and 100% Compatible Scripts

(Script Demos are all still available in the Collection link above.  I lost some individual demos due to a server crash.)

finalholylight

Quote from: Heretic86 on November 25, 2012, 08:24:15 pm
Quote from: finalholylight on November 24, 2012, 11:59:46 pm
Would you mind making this script compatible with H-mode7 script.


In order to accomplish that, it would require rewriting of the H-mode7 entirely more than it would just making simple modifications to this script.   I think you would have better luck with asking the author of the H-mode7 script to incorporate layered clouds as a visual effect. 

I think if he can do that, it will very laggy, so can you write a method that can ON/OFF this script ?, then before I go to a h-mode7 map, I will OFF this script for not crashing the game.

Heretic86

I've thoroughly tested this out with the H-Mode 7 script you are using, and did manage to get it working by placing the clouds script above the Mode 7 Script.  Rearranging script order is a common solution to making many scripts more compatible, just so you know.  The results of being compatible arent pretty though.  The clouds do appear and have the correct effects, however, the effects are correct for a "flat map" but wrong for a perspective map.  So the clouds render as flat in front of the screen.

My conclusion is that the clouds script is compatible as far as code goes, but it just isnt going to work for you because your H-Mode 7 is a pseudo 3d, and this rather simple script is intended for 2D, that and the H-Mode 7 script doesnt handle Fog (or clouds) at all.  Try using any fog without my cloud script and you'll see the same problem.
Current Scripts:
Heretic's Moving Platforms

Current Demos:
Collection of Art and 100% Compatible Scripts

(Script Demos are all still available in the Collection link above.  I lost some individual demos due to a server crash.)