Hey folks, I'm experiencing a weird glitch with my parallax setup. All the layers seem to be off on the y-axis and have moved 4 pixels down. Of course there is a brute force solution by just creating an offset in the parallax images, but ... I'ld rather not. I triple-checked if there were mistakes in the images' size, but that doesn't seem to be to case.
Parallax glitch / offset Galv LayerGraphics
RPG Maker MV SupportIf that happens, usually one of the numbers is off - and we can't see which one unless you tell us that.
What is the map size in tiles and the picture size in pixels?
does your filename for the parallax picture has a ! in front of it?
Please give a link to the plugin you're using and tell us how you configured it.
What is the map size in tiles and the picture size in pixels?
does your filename for the parallax picture has a ! in front of it?
Please give a link to the plugin you're using and tell us how you configured it.
Thanks for the swift reply. We are using this plugin: https://galvs-scripts.com/2015/10/30/mv-layer-graphics/
The map size is 4080 by 2880, 85 by 60 tiles. No "!" has been used in front of the parallax file name. Could that be the cause of the problem?
The map size is 4080 by 2880, 85 by 60 tiles. No "!" has been used in front of the parallax file name. Could that be the cause of the problem?
I don't know - you need to test that.
What a lot of people don't know is that "Parallax" is not a strange name someone imagined - it is a technical description of a function that that picture has, it is not simply a background. To be more precise, a parallax is a moving background with a special move function.
Because of that, all pre-MV RM's absolutely required a script to allow for parallax mapping - a script to disable that movement.
However, MV introduced a default method - if you read the help file on the parallax, you'll read that a ! in the filename disables the parallax (which means that special movement function).
And because of that, it depends on the plugin with MV - some plugins still provide all functions to handle the overlays and the parallax, but other plugins expect you to use the default method to disable it.
And most probably some plugins where the writers didn't know about this could have anything messed up.
So you'll have to check yourself.
Your numbers themselves are correct, but that parallax is rather big and uses up a lot of resources. You'll need a powerfull computer to handle that and no chance of deployment to mobile in my opinion, and it might be that this is also something that causes problems - especially because pixi.js has a limit on picture size, and it might be that part of the picture is cut off when loading - can you make a test with a copy of the picture and a temporary map that is reduced to 80x60 (with the picture cut off of course and check if the same thing happens there?
If yes, you need to modify a few lines of the pixi.js to allow for larger pictures.
Thanks! Will check!
Original thread: https://forums.rpgmakerweb.com/threads/parallax-glitch-offset-galv-layergraphics.80465/