Hey guys,
does anyone of you know a good tutorial on how to make fog? I mean, not with a script, but with (a) picture(s). I've tried a few things, but none of them worked.
Alternatively, if anyone knows how to explain the basic idea behind it, I think that would be enough, actually. I'm not that bad at eventing, it's just that I'm not sure about the basic idea.
Kind regards
Liak
If you just wanted static fog, you'd just make the picture and use Show Picture to display it - no need to worry about movement. Show Picture will give you different blend modes, so you could experiment with those a bit a bit, and opacity, to see if you can get a good effect.
If you wanted moving fog, you would need to make a picture twice as wide or high as the game window (if you only want it to move horizontally, just double the width; if you only want it to move vertically, just double the height; if you want it to move diagonally, double both of them). Then in a parallel process event, use Show Picture and place the upper left at -544,-416 (or whatever width/height your window is). Then use Move Picture to move the upper left to 0,0, setting the Wait for Completion box. That will make it move across and down at the same speed - it may not be what you want, but it's necessary if you want seamless repetition.
I actually don't know if that will really work. That's what I'd try and do, if I wanted to do fog with pictures.
Edit: ninja'd! At least Cronus proves I was on the right track 🙂
Oh, I see! Thank you guys! Doubling the width/height/both is the trick! In fact, I've almost been there, but I displayed the same picture twice. Which caused problems because there was always a line where both pictures were "glued" together, because the movement wasn't exactly in sync. Doubling the size. Wow. 🙂 I'll try that right away!
EDIT: It worked! Thanks again! 🙂 One thing I noticed, though, was that it was kind of "stuttering" when the process repeated itself. I had my picture move from -544 to 0 on the X axis. I tried moving it to only -1 before re-displaying it. That seems to reduce the stutter. Maybe that's something you want to try for the fog in Zu, as well, Cronus. Or anyone else reading this, of course.
Another EDIT: Hm, I do still have a problem here. On a large map, if the actor moved against the fog and the screen scrolls, the fog stops moving. Does anyone recognize this issue and has a solution to it? :/
Are you using any fog/picture scripts? A picture should not stop moving when the actor moves, because a picture is locked to the window, not to the map.
Why are you moving it to -1 and not 0?
Why are you using Normal blending when you show it and Add blending when you move it?
Both of those will cause a very slight flicker.
The -1 seemed to actually reduce flicker. In my post above I had an EDIT where I talked about that. 🙂
As far as the blending methods are concerned, I don't actually have an idea what they do. I was just testing things there.
You don't need a loop inside a parallel process. They loop by default.
I know, I know. 🙂 Cronus posted his event with a loop, so I wanted to see if that solves my problem, but unfortunately, it didn't. :/