Hello everyone, I'm having issues with a map I've been working on. I put together the "bones" in map and then transferred to GIMP for customization. I separated into 4 layers. The ground and bottom of the buildings on the base, some vegetation and bottoms of trees on the next layer, tops of trees above that and the top of the building above that. My issue is when I walk around the map, the layers disconnect from the base layer and they shift. This only happens around the center of the map. Depending on where I'm standing in the center, the layers will shift either horizontally, vertically or both. Most notable is the top of the building separating from the base, as if it were popping off as seen in the pictures. The only way I've been able to get them all to stay in place is by using "show picture" for each level but, of course, I can't see actors and characters through that so that isn't an option. I've tried Visustella parallax plugin and haven't had a lot of luck with it. I know each layer is the correct size as I've made certain of that in Gimp. I'm really at a loss. I've tried doing things with regular file and also with adding "!" as well as combinations of both. Nothing will keep my layers "glued together" so to speak. Any help would be great. I'm not ENTIRELY new to RPG Maker but have never come across this issue. Although this is the first map I've decided to basically do from scratch, short of starting with the bones.
Parallax Shift Issue
RPG Maker MZ Supportwe need to see how you placed the upper layers.
also, your parallax picture has to have a filename starting with ! to disable the parallax movement, or nothing will ever line up for you.
but the upper layer completely depend on what you use to place them.
also, your parallax picture has to have a filename starting with ! to disable the parallax movement, or nothing will ever line up for you.
but the upper layer completely depend on what you use to place them.
Sure! So this is how I have everything set-up. Super simple, no plugins and using pictures for everything. I will note again that the bottom of the building is attached to the base/parallax layer, but regardless, nothing should come apart or float away from each other anyway. Everything moves and stays together as intended until I reach a specific horizontal/vertical area, at which point the pictures shift a smidge. I'll put up another picture to demonstrate better.
Thanks so much for replying, by the way. I appreciate you looking into this!
the problem with your method is probably the timing, especially if you have other parallels on the same map.
can you check if there is any difference if you add a wait(2 frames) after the show picture commands?
at this moment the show picture commands are given sixty times per second, with a 2-frame-wait that should drop to twenty times per second - still faster than any possible movement by the player, but no longer drawing as much CPU power.
can you check if there is any difference if you add a wait(2 frames) after the show picture commands?
at this moment the show picture commands are given sixty times per second, with a 2-frame-wait that should drop to twenty times per second - still faster than any possible movement by the player, but no longer drawing as much CPU power.
Yeah, let me give that a try really quick. I see where you're getting at, however, the pictures dont have to necessarily "catch up". The pictures will remain like this if I'm standing in a rough area of the map. For example, like in the pictures, if I'm more towards the top, the bottom, the left or the right side, everything lines up just fine, but it's when I'm in a particular area (a few spots in the center) that the layers come apart. It seems almost as if the layers are trying to scroll with the map but then get confused and caught between some kind of integer that wants them in one spot while theyre also trying to cover another portion being scrolled to, if that makes sense. Easy to see in action, a little tougher to describe. I'm not certain it's a timing issue as it is some sort of scrolling/placement issue, which is strange as all of the layers are the exact same dimensions and all match the dimensions of the map, as they are just edits of a "saved map" itself.
Going into a playtest and looking more, it appears as though every "picture" layer shifts and comes apart from the base map editor parallax layer. But that shouldnt be the case as they are all the same dimension. I've also just noticed that the "picture" layers only come apart from the map editor parallax layer when a scroll is started. For example, if I'm moving up in a map, the point at which the map begins to scroll is when the layers stop aligning. It's not a catch-up issue as they remain unaligned even after I have stopped. When I go far enough in any direction for the screen to hit an edge and start a last "scroll phase" that scrolls to the edge of the map, things pop back into place.
After some more messing around, I realized a couple things. 1. When I have the Visustella Movement plugin "smooth scroll" feature disabled, my map ALMOST functions correctly. Where, before, when the layers would "shift", they would stick to their incorrect shifted position. However, with "smooth scroll" disabled, the layers do shift while moving, but immediately pop back into place. 2. By disabling the Visustella Movement plugin, the problem is fixed entirely. I would like to continue to use this plugin in my project, does anyone have experience with this plugin that could maybe shed some light in what's going in here?
I use doodads to create layers and don't have this problem. I also use Visustella's movement core. Time will tell if it causes optimization issues, but I figure doodads can't be any worse than pictures. (Also, very minimal testing shows that doodads load faster than pictures)
I narrowed my issue down somewhat. I use some Visustella plugins and have narrowed the issue down to a problem with the Visustella Movement plugin. So the issue is when I move towards the center of my map, the layers "shift" one or two pixels on both the x and y axis depending on where I'm standing. I tried screwing with a few setting in the Visustella Movement plugin, and when I disabled the "smooth scrolling" feature, it ALMOST fixed my issue. However, I say almost because prior to disabling the feature, the pixels would stay "shifted" after I've stopped moving. After I disabled the feature, the pixels would still shift but would pop back into place. So as I'm walking, the pixels shift from their correct position and back. They almost dance, in a way. Soooo, with that said, I disabled the VM plugin altogether and that fixed the issue. I'd still like to use the plugin but I'm not certain which aspect of the plugin (or rather, which setting within the plugin) is affecting my map. It has to have something to do with the scrolling. Also, this happens both when I use "show picture" or when I use Visustella Parallax Visuals.
Original thread: https://forums.rpgmakerweb.com/threads/parallax-shift-issue.151578/