Fogs scroll with the character

Is it possible in any conceivable way to create a moving fog which wouldn't follow the character in larger maps? I feel like I've tried everything now, from Shaz' multiple fog script to Victor Sants equals. I can get the fog to show easily, and I can get it to move however I want. But when the character moves in a map, the dang fog always "follows" the character, scrolling in the same direction as the map. It looks seriously unnatural to me. This is an issue that does not occur with static overlays, such as light effects used with Yami's Overlay script. So, basically all I'm able to do at the moment is a stationary fog, or a fog that's mimicing the players movements even if it has its own move route.
Please read the thread about Shaz' multiple fog script. There is a solution in it that should fix your problem, I think. You might have to read some pages, but I know that he provided a fix for it, but you have to insert it manually into Shaz' fog script.
I've moved this thread to RGSSx Script Support. Please be sure to post your threads in the correct forum next time. Thank you.


tbh I have never seen the problem some people seem to have with my script. The fog always moves in a constant speed in a constant direction. It may LOOK like it's slowing down or following the character when you're moving in the same direction, but that's the way things work. If you are in a fog and it's moving very slowly, it will always stay the same speed - it won't move faster or slower because you're walking in one direction or another, or because you're walking quickly or slowly or not at all.


Anyway, yes, there is a snippet of code that appears to fix the "problem" (I say appears because I don't recall ever being able to duplicate the problem, and I preferred it without the extra code).

Candacis said:
I know that he provided a fix
I'm a girl 😉
Thank you very much, the snippet in that thread solved the problem!

Original thread: https://forums.rpgmakerweb.com/threads/fogs-scroll-with-the-character.41000/