Hey folks,
My game uses parallax mapping (using Galv's Layer Graphics), and is a 16x16 game using a map zoom of x3 and a resolution of 1248x720 (dimensions intentionally divisible by 16 and 3).
Whenever my character moves, all of the events on the map jitter around, as they appear to be scrolling at a different pace than the map.
This happens in a wide range of scenarios, and it's more noticeable when the player is moving faster.
Here is a video to show what I mean:
In this example, my bottom map layer is just a normal parallax map set to the map in its settings (with a ! in it's name so it locks to the map). The top map layer (tree tops, lamp tops, bus shelter roof, etc.) is set using Galv's Layer Graphics. I also added a smooth camera plugin to really show how off everything is scrolling (though the issue is still there without it). When I speed up at The End, the issue gets worse.
I did it this way to show that it is not an issue with the layer plugin (as I first thought). Galv's layer is jittering at a different rate than the vanilla bottom layer, and both are jittering at a different rate than the events.
My question is this: Surely I am not the first person to use parallax mapping on a 16x16 game. How do you folks do it? I imagine these issues are not as noticeable on a 48x48 game with no map zoom, but this seems like a major issue that would stop anyone from being able to parallax map when making a lower res game.
I have tried (and purchased) every parallax mapping plugin under the sun to try to fix this, including Ocram Layers and VisuStella Parallax Images. Nothing has solved the problem, so I am sticking to Galv's as it is the simplest to use and allows some screen filters I am relying on to affect the layers as well.
Any help is much appreciated!
List of things I have tried:
My game uses parallax mapping (using Galv's Layer Graphics), and is a 16x16 game using a map zoom of x3 and a resolution of 1248x720 (dimensions intentionally divisible by 16 and 3).
Whenever my character moves, all of the events on the map jitter around, as they appear to be scrolling at a different pace than the map.
This happens in a wide range of scenarios, and it's more noticeable when the player is moving faster.
Here is a video to show what I mean:
In this example, my bottom map layer is just a normal parallax map set to the map in its settings (with a ! in it's name so it locks to the map). The top map layer (tree tops, lamp tops, bus shelter roof, etc.) is set using Galv's Layer Graphics. I also added a smooth camera plugin to really show how off everything is scrolling (though the issue is still there without it). When I speed up at The End, the issue gets worse.
I did it this way to show that it is not an issue with the layer plugin (as I first thought). Galv's layer is jittering at a different rate than the vanilla bottom layer, and both are jittering at a different rate than the events.
My question is this: Surely I am not the first person to use parallax mapping on a 16x16 game. How do you folks do it? I imagine these issues are not as noticeable on a 48x48 game with no map zoom, but this seems like a major issue that would stop anyone from being able to parallax map when making a lower res game.
I have tried (and purchased) every parallax mapping plugin under the sun to try to fix this, including Ocram Layers and VisuStella Parallax Images. Nothing has solved the problem, so I am sticking to Galv's as it is the simplest to use and allows some screen filters I am relying on to affect the layers as well.
Any help is much appreciated!
List of things I have tried:
- Changing tile size to 32x32 and upscaling all of my assets. This makes it less noticeable, but causes my game to consume more resources and ultimately doesn't fix the problem when moving quickly (dashing etc.).
- Changing parallax layer plugins. They all have some variation of this issue.
- Switching to a tilemap. This does fix it, as the events seems to scroll at the same rate as the tilemap, but this doesn't help at all, as I am dependant on parallax maps for my game.
- Moving very slowly. Right now, this is my solution if I don't find anything else. Having a pretty slow character and disabling dashing removes the jitter, as everything updates slow enough not to be noticeable. Obviously, this will make my game worse, so not ideal.
- Removing other plugins. This issue persists with no plugins, even when just using a vanilla map-locked parallax layer in the core engine and moving quickly.
- Try on a different monitor. This does change it, likely due to refresh rates and all that. I have been testing my game on my steam deck, and while it tanks the performance on there, the smaller screen and lack of screen stretching for such a small display does help, and locking to 30fps via the steam deck options makes it less noticeable. Not helpful for any typical PC display, though.
- Change resolution. This issue persists at all resolutions and at any map zoom ratio I have tried.