The RPG Maker Resource Kit

RMRK RPG Maker Creation => RPG Maker General => General Scripting => Topic started by: gameo on May 03, 2007, 03:40:53 PM

Title: I don't know if it's a script, but.....
Post by: gameo on May 03, 2007, 03:40:53 PM
It may also be a stupid question, but anyway:

How do you get the fog to move itself? I've seen it in a couple of game in the forum.
Title: Re: I don't know if it's a script, but.....
Post by: modern algebra on May 03, 2007, 07:07:01 PM
It's not a script. You set it when you set up the fog, like so:

(https://rmrk.net/proxy.php?request=http%3A%2F%2Fimg234.imageshack.us%2Fimg234%2F2573%2Ffogpiczx0.jpg&hash=64040bdcb4aec40f1eb58df96c7035741ffb887b)

See those SX, SY thingies?

You can think of that as X speed and Y speed. The higher the number, the faster it moves. As well, the sign determines direction. The directions work like this:

North: + Y value
East: + X value
South: - Y value
West: - X value

And the magnitude determines speed. So -5 is as fast as +5, but in the opposite direction.

I hope that helps. Post back if you still have questions.