It should work. Screen tint is above the map and character layer - in a completely different viewport. Anything below them (which the fogs are) should be affected. I'll have a play and see if I can reproduce the issue.
Multi Layer Fog
RGSS3 Scripts (RMVX Ace)Here a example. The fog image is black and white but with the tint screen effect became purple 🙁
Have you got the fog set to add mode? What if you leave it as normal?
I put so: show_fog(1, "Fog", 0, 0, 1, 100, -1, 0, 300)
The blend_mod is in add because I need to remove black parts and don't know to make fogs without this parts x.x
The only problem is it being affected by the change on the screen. On another script the screen tint didn't
affect the fog, but ... it wasn't as good as yours and allowed only one fog at a time.
Hey, Shaz, I appreciate the attention, but solved. In the reality a friend showed me this line to change:
@fog_planes[fog.number] ||= Plane_Fog.new(@viewport2, fog)Anyway, thanks to the attention, again 🙂
The blend_mod is in add because I need to remove black parts and don't know to make fogs without this parts x.x
The only problem is it being affected by the change on the screen. On another script the screen tint didn't
affect the fog, but ... it wasn't as good as yours and allowed only one fog at a time.
Hey, Shaz, I appreciate the attention, but solved. In the reality a friend showed me this line to change:
@fog_planes[fog.number] ||= Plane_Fog.new(@viewport2, fog)Anyway, thanks to the attention, again 🙂
Did this ever get straight?
Should I add the "fix" or shall I be patient?
(I am so not in a hurry - back at work no less time on project.)
I'm sorry Deb - I didn't look at it. I will see if I can play with it in the next couple of days.
I am in absolutely no hurry. =] Just wondering.
This one isn't working for me, either. 🙁 I loaded up a parallel process with the script event: show_fog(1, "Fog01", 0, 255, 1, 0, 5, 5, 0) and nothing happens.
Gotta be something in your project that's stopping it. Are you able to zip it up and load it somewhere so I can take a look?
Your zoom is set to 0, and it should be 100 (for 100%) or higher.
And your z-index is set to 0. This will put it at ground level and your treetops will show above it. Leave that last argument out.
This works:
Also do an Erase Event on your parallel process event after showing the fog, otherwise it's going to keep looping, and that could cause issues too.
And your z-index is set to 0. This will put it at ground level and your treetops will show above it. Leave that last argument out.
This works:
Code:
show_fog(1, "Fog01", 0, 255, 1, 100, 5, 5)
Awesome, thank you very much! I guess I thought 0 would be "normal" zoom and "100" would be 100 zoomed in. When leaving an argument out, you don't put any values at all then?
Also, what would be the default settings for each value if you just wanted a static normal basic fog?
show_fog(1, "FileName", 0, 255, 1, 100, 0, 0) ?
Also, what would be the default settings for each value if you just wanted a static normal basic fog?
show_fog(1, "FileName", 0, 255, 1, 100, 0, 0) ?
For default values, only specify the fog number and name.
The defaults are here:
def show_fog(number, name, hue = 90, opacity = 64.0, blend_type = 0, zoom = 200, sx = 0, sy = 0, z = nil)Anything with = can be left out and the default will be applied. Of course, you can't leave out hue and put something in for zoom - you have to fill in all the arguments up to the last one you want to be something other than the default, so in that case you'd need to provide number, name, hue, opacity, blend type and zoom.The arguments are based on the XP event command, which uses 100 for 100%, 200 for 200%, etc.
The defaults are here:
def show_fog(number, name, hue = 90, opacity = 64.0, blend_type = 0, zoom = 200, sx = 0, sy = 0, z = nil)Anything with = can be left out and the default will be applied. Of course, you can't leave out hue and put something in for zoom - you have to fill in all the arguments up to the last one you want to be something other than the default, so in that case you'd need to provide number, name, hue, opacity, blend type and zoom.The arguments are based on the XP event command, which uses 100 for 100%, 200 for 200%, etc.
So what if you wanted the fog to loop endlessly like a parallax background does while the player moved like in RMXP, instead of scrolling automatically on its own? For example, in RMXP, you could set a tileset's fog setting in the database to "Shade01" or something and the fog effect only moved when the player did, and it looped endlessly giving a much better illusion of it.
Read through the previous posts. Someone made a mod that changes the way it loops.
Alright, I'm having a weird issue that I can't seem to find anyone else having.
This is an egregious example, but gotta explain, right? The above is how my fogs currently look (albeit tweaked for visibility).
BUT! If I enter a menu..
Bam! Up becomes down, dark becomes light, the world falls into chaos and Donald Trump is elected POTUS. For some reason, it seems the blend type is being changed. Am I implementing this wrong somehow?
This is an egregious example, but gotta explain, right? The above is how my fogs currently look (albeit tweaked for visibility).
BUT! If I enter a menu..
Bam! Up becomes down, dark becomes light, the world falls into chaos and Donald Trump is elected POTUS. For some reason, it seems the blend type is being changed. Am I implementing this wrong somehow?
Your elaborate description of what the problem was doesn't actually explain what the problem was. Can you try it again without the fictional embellishment?
tbh I can't see a difference between the two, except that the fog pattern itself is not the same, likely due to its movement.
tbh I can't see a difference between the two, except that the fog pattern itself is not the same, likely due to its movement.
that actually is the same. And it hasn't moved, at all. It's inverted. I meant the "dark becomes light" literally. Look at the black blob to the right. Now look at it on the other picture. The pattern is exactly the same because the image hasn't moved. But, where it used to add, it now removes. The only reason this isn't *immediately* visible is because on the top image, the fog is additive, so it's being added to the treetops. You can see the pattern clearly on the treetops. However, when it changes to.. not.. additive?.. you can no longer see the pattern continue across the treetops because it's "removing" black from black.
Looking at where the NPC sprite is, you can clearly see in both images the pattern being overlaid. However, in one it's light. In the other, it's dark. Same pattern. Same exact placement. Would a video help?
Here's a video.
Looking at where the NPC sprite is, you can clearly see in both images the pattern being overlaid. However, in one it's light. In the other, it's dark. Same pattern. Same exact placement. Would a video help?
Here's a video.
Can you show me a screenshot of the event that sets up the fog?
Common Event sets it up, hope that's okay. The highlighted section is the one that is being called, as switch 9 is off.
Original thread: https://forums.rpgmakerweb.com/threads/multi-layer-fog.18835/