Edit:
Through tinkering I've determined that the issue relates to the Yanfly CORE Engine plugin. This plugin was setting the application resolution to 1296x720, which is larger than default. I can get rid of this issue by setting the application resolution to 1248. 1296 is the width of 27 tiles -- my map has 26. For whatever reason the parallax wraps into that extra tile's worth of space... even though it's not part of the map. A black border would be preferable. Ideally I would like to be able to use parallax mapping techniques in maps that are smaller than my application resolution... but it seems like there might not be a way to do that without creating oversized parallax images with negative space which then gets wrapped. Is that correct?
Original Post:
So, I've watched several tutorials on how to build parallax maps, and I have one issue I haven't managed to resolve. Whenever I make a map I create an image file that is the exact pixel width/height of my map. This is what the tutorials said to do.
My current map is 26x15, so that would make the pixel width/height of the parallax image 1248x720.
However, when I do that, I end up with a weird 1/2 tile "wrap" of my parallax image on both the far right side and far left side of my map. This only shows up in game. In the editor it looks great.
The only solution I have found to make my map look normal is to make my parallax image not 1248x720, but 1344x720. I then make the last half tile width sliver of the far right side of the image match the far left side of my map, because that's where I end up seeing it.
This is what the map looks like if I make it the "correct" size.
And here is how it looks in GIMP and in Game if I use my crappy workaround.
It looks to me like the far left 24x720 column of my parallax image gets wrapped around to the far right of my image, and the far right 24x720 column gets wrapped around to the far left side of my image. And I have no idea why.
I would like to do this right. Anyone know why this is happening?
Through tinkering I've determined that the issue relates to the Yanfly CORE Engine plugin. This plugin was setting the application resolution to 1296x720, which is larger than default. I can get rid of this issue by setting the application resolution to 1248. 1296 is the width of 27 tiles -- my map has 26. For whatever reason the parallax wraps into that extra tile's worth of space... even though it's not part of the map. A black border would be preferable. Ideally I would like to be able to use parallax mapping techniques in maps that are smaller than my application resolution... but it seems like there might not be a way to do that without creating oversized parallax images with negative space which then gets wrapped. Is that correct?
Original Post:
So, I've watched several tutorials on how to build parallax maps, and I have one issue I haven't managed to resolve. Whenever I make a map I create an image file that is the exact pixel width/height of my map. This is what the tutorials said to do.
My current map is 26x15, so that would make the pixel width/height of the parallax image 1248x720.
However, when I do that, I end up with a weird 1/2 tile "wrap" of my parallax image on both the far right side and far left side of my map. This only shows up in game. In the editor it looks great.
The only solution I have found to make my map look normal is to make my parallax image not 1248x720, but 1344x720. I then make the last half tile width sliver of the far right side of the image match the far left side of my map, because that's where I end up seeing it.
This is what the map looks like if I make it the "correct" size.
In GIMP
In Game
In Game
And here is how it looks in GIMP and in Game if I use my crappy workaround.
In GIMP
In Game
In Game
It looks to me like the far left 24x720 column of my parallax image gets wrapped around to the far right of my image, and the far right 24x720 column gets wrapped around to the far left side of my image. And I have no idea why.
I would like to do this right. Anyone know why this is happening?