Where is a good place to get fog graphics? I tried the search engine on the forums, but fog is too short a word for the search engine, so it returns nothing (appears we have to use 4 letter words or bigger for it to be a valid search it says, so it deletes fog from my search). Any good public resources out there at the moment?
If you own a copy of XP, you can use the XP fogs. I'm not sure there are any available here on the site, as fogs are not something that Ace uses.
You could also use Google search but limit it to this site if you want - that'll allow you to overcome the 4-letter minimum constraint.
aww...shaz....my internet is crappy and don't allow me to open your site where the script is....how I can do for get your script?
And, as luck would have it, I do own XP and ACE, so that just might solve my problem. Thanks! I tested the script with a dummy graphic just to display something as a layer, and it worked fine, but needed to find fog to be able to use it well.
Hello,
I'm having slight difficulties understanding the method of showing a fog. As I am using this for a parallax background alternative, I want my fog to be inbetween the parallax and map, and to be full opacity. So the first thing I did was this:
show_fog(1, "Mage", -50)
Sure enough, my image appeared inbetween the map and parallax, however was zoomed in and around 25% opacity. So I tried this, and it failed:
show_fog(1, "Mage", 255, 100%, -50)
The script didn't expect this. I'm obviously doing something wrong here, so could somebody please point me in a more preferable direction?
You don't use the symbol %, just have 100.
Just remember - you can't put in ONLY the arguments you're interested in and expect it to work. If you want to change the last argument, you MUST provide all the others.
So to show it between the map and the parallax layer by putting -50 as z for the last argument, you also have to specify the fog number, file name, hue, opacity, blend type, zoom, speed x and speed y, even if you just want to give them the default values. You can only leave an argument out and have it accept the default if you also leave out (and have it accept the default) for all the others following that one.
200 is the default. You should be able to put in other values and see the results. I would ask if you put it in the right place, given that you didn't enter enough arguments initially.
Ah, okay, I see it now.
In the original version (XP Fog - single layer) this would have worked. In the new version it won't go below 100 because I forgot to use floating point arithmetic.
Search for these two lines in the script:
self.zoom_x = @fog.zoom / 100 self.zoom_y = @fog.zoom / 100(they're in the Plane_Fog.initialize method)Change it to this:
self.zoom_x = @fog.zoom / 100.0 self.zoom_y = @fog.zoom / 100.0(just put .0 after each 100)Without that, it's doing 75 / 100 = 0.75 and then converting to an integer via truncation rather than rounding.
I'm having a great time using this script, but not for it's intended purpose of Fogs. Due to all the controls and ability to use multiple pictures I've actually gotten to it preform a moving star field\nebula to simulate travel along with planetary movement for separate pictures. I'm also trying it in cut scenes for some larger overlays to see if I can get it to simulate underwater and a few other environments.
Thank you much for this, it's immensely useful and fun.
I'm thinking about ditching the blog and just putting all the links straight to pastebin. It just means I'll need to make sure all the instructions for my scripts are complete here.