MV Parallax Background that moves slowly as player moves?

I've seen this brought up a few times, but the threads are very old, so I wanted to ask again to avoid necro-posting.

In RPGM-MV, Parallax Backgrounds can either...
  • Stay still relative to the player, but move relative to the map (so the map slides over the image)
  • Add the ! flag so they stay still relative to the map
  • Scroll vertically or horizontally (or both!) at a constant rate
One thing I'm surprised is not natively supported is the ability to set Parallax Backgrounds to scroll with movement, to a lesser degree.

So, for example... When the player is motionless, the parallax does not move. But when the player moves 2 tiles to the right (i.e. 96 pixels by default) the parallax background could move 0.25x the distance to the right (i.e. 24 pixels).

So like this:

fatalfury2-terry-train-stage.gif


Forget about the floor in the foreground. I'm just talking about how the trees in the middle distance move at one speed, and the parallax background (Mt Rushmore and the sky) move at another speed.

Just checking in case I've missed this. I know there are ways you can do it, like you can set up an event to measure player position and turn the scroll on/off, but that seems a hacky way to do it.

Is there some way to do this sort of thing?
One thing I'm surprised is not natively supported is the ability to set Parallax Backgrounds to scroll with movement, to a lesser degree.
and there you are wrong - what you describe is the original function of the parallax, its definition of the word itself.

However the parallax depends on the size of the background in comparison to the size of the map.
Your first case of "stay still" is a special variant that only happens if you have the parallax at a specific size.

The entire tuitorials for parallax mapping about making the background and the map the same size is exactly to disable the parallax movement. If you want the parallax to happen, then you need to use different sizes - and the speed will depend on how different the sizes are.
Moved to: Plugin Requests

I imagine a plugin that allows you to have more than one parallax background would do it.

If the parallax is the same size as the map, it will move at the same speed as the player.
If it is wider than the map, it will move faster.
If it is not as wide as the map, it will move slower.

So your most distant layer would be less wide than the closer layer.

And your map should not be set to loop.

At least I think that's how it'd work, but it's late and I need to sleep, so I reserve the right to be wrong about some of that 😉

Original thread: https://forums.rpgmakerweb.com/threads/parallax-background-that-moves-slowly-as-player-moves.155384/