Just discovered that if I use fogs but without assigning them movement with Version 2, the "stationary" fogs are effectively "anchored" into the map instead of the screen creating a looping series of the fog image across the map, making the usage of stationary fogs pretty much impossible.
Interestingly this isn't the case for the original version, so I'd imagine the logic behind 'fog no longer sticks to player' has also prevented non-moving fogs from following the player (and the screen), while this can obviously be circumvented by simply using pictures instead of fogs, is there any chance that can be fixed?
Can you please show a screenshot of (or copy/paste) your fog command, as well as your map properties? I'll take a look.
The fog command:
show_fog(1, "Fog_sun01", 0, 255, 0, 100)
I am basically using a non-scrolling fog (ie. sunlight) with the size of 640x480 on an empty, blank map straight out of a fresh project so there are no map properties, and yes this is tested on a new project just to be sure.
So you want it to not move with the map at all? Why not just use a picture?
It's anchored to the map intentionally. Would require a rewrite to anchor it to the screen, and then your fogs on other maps would be the same.
So that was intended behavior? That's fine then. Thought it was weird since the first version was able to do it, guess I'll make due with the picture method instead. Thanks.
The changes between the two versions is very minor, to fix the "stick with player" issue. It added the offset based on the map display position, and nothing else. If you don't want that behaviour, why not just use the original?
I simply preferred the fog movement of the 2nd version as it looked more natural for my fogs under normal circumstances and will work regardless of movement speed, and several other fog scripts I've tested before also works that way but does not anchor stationary fogs to the map. Further testing may prove me wrong however.
No, because one version used the map and the other didn't. I might be able to write a little mod for you to use both versions and just issue a command when you want to use the less-frequent one.
Thanks for considering that option, I'm deeply grateful for this.
Simply a way to toggle between the two "versions" would be a nice addition to the script (As long as it doesn't require you to rewrite the thing or do too many modifications). I'm sorry if this sounds nitpicky but that's all it really needs for now to address the drawback of each version (if possible).
Sorry for the late reply, finally managed to get some time to open RPGMaker again after two consecutive busy workdays (heh)..
Your method works as expected, though I needed to make a little correction by also including the switch check on the def show method (on line 174), else it pops up an error when you try to toggle the switch back to off again when the fog is in place (probably not necessary since fogs are disposed of upon map change but just to be on the safe side) I feel so dumb now for not realizing the minor differences between each versions and just opt to combine the two with a simple if-else statement...😅
Anyways, wonderful script and thanks so much for your support again! A mere like couldn't express my gratitude here.
I don't know if anyone else was having this problem, but for me, when I'd transfer between two maps with fog, the new fog's blend type wouldn't update until the scene changed; it would be the same as the previous fog's. I eventually fixed this by editing the script slightly. I thought I'd post my edit here, just for the sake of anyone else who's having this problem.
The tiny edit I made is clearly labelled with "#EDIT".
Hope Shaz doesn't mind.
Fix added to both versions. Thank you again for this.