Parallax map multiplies!

Hey ya'll

since I am new to this software I am wondering why, even if I have locked a small

10x10 parallax image (its locked by putting the ! on the start of the name)

it multiplies as I play the game on a 1320 x 720 resolution?

This kind of thing doesn't normally happen does it?

shouldn't it be  all black on the edges instead?
No. Parallaxes in MV use a TileingSprite class, so if the image is not large enough to fill the screen, it tiles by default.


Is the 10x10 the number of tiles? How big is your map? Have you set either vertical or horizontal scrolling?


I know we've talked about this already, and I really don't know the answer, but I'm curious about these things, and will be looking to see what the solution is 🙂
well  its not exactly 10x10

its more of:

13x10

The image, before testing and on the main menu of the software fits PERFECTLY

however when play testing it it automatically multiplies

is there a way to disable this?

I mean, if this happens, I'll have to manually recreate the black areas myself, but that'll be too much of a hassle...

the resolution now, I've made it so to fit the 48 tile is

1296x816
I'm pretty sure, if you don't want it to tile, you have to make it exactly the same size as the map. So the width should be number of horizontal tiles x 48, and height should be number of vertical tiles x 48.


If you WANT to have a black border around it, you need to add it to the image.
I did.

it fits perfectly.

however when I started the test run on the 1296 and 816 resolution it multiplies...
Your map also needs to be sized to fit the window resolution. How big is your map?
The map is 13x10
So your map is only 624x480 pixels, and your resolution is 1320x720 (from your first post) or 1296x816 (from your second post).


What are the dimensions of your parallax?


If your window resolution is 1296x816, your map needs to be 27x17 tiles, and the parallax image should be 1296x816 as well.


This is based on what I understand about window resolution & map size, and if the parallax is smaller than the window it will repeat. I could be wrong.


As a test, can you duplicate your map and your parallax, change the map to 27x17 and shift the tiles (by right-clicking on the map name) so they are centered, and edit the copy of the parallax image so that it's also centered in a 1296x816 image? Test that map out and see if it works without tiling the background.


There MAY also be a plugin or two that change the behaviour of the parallax. Can't say I recall seeing any, but there are plenty that I'm not aware of.
I see

I am opening up this thread if there are any plugins for this...
I am opening up this thread if there are any plugins for this...
If you're talking about a plugin to allow you to use maps smaller than the screen size, then there is none that I know of.
And that is because that requirement "minimum map size needs to be screen size" is not done as a punishment for game developers, but a technical requirement.


Everything you see on the screen is data - even a black border needs to exist as data in the graphic card. If no data exists for any place on the screen, then the graphic functions need to tile the existing data.


And it is not easy to write a plugin that splits the output so that data for a black frame is read from a different place.


If you want to use a map with 13x10 tiles, then you usually have the following options:


1) Make the screen size 624x480 pixel


2) Make the map the size needed for your screen size (for example 27x17 as Shaz said above) and fill the outer areas with black tiles in the editor, only using a part of the map to pretend to the player that the map is smaller.
that's good

so basically I'll just have to compensate the remaining zones with black borders that way it'll fit the screen.

I see...

thank you.
Did you try what I suggested just to confirm that it DOES fix the issue?


I'm sure there were one of two of the large "engine" scripts in Ace that resized the game window, and at least one of them placed smaller-than-window maps in the center of the screen. I just don't recall who wrote it.


I would check out anything Yanfly or Yami have released for MV for starters. I think all of Yanfly's scripts are in a single thread in the JS Plugin Releases forum, and that might be true for Yami as well.


In fact, if you used either of their engines in Ace and that allowed you to resize the screen, I'd look for the equivalent engine in MV as it will probably have very similar options & handling.
alright

well I did some experimenting

it seems that the resolution is at fault here.

say I change the tile sets to "outside"

I fill the map with green tiles.

the moment I test run the game the remaining space that has been created for the resolution immediately fills up with the parallax image.

it seems the only way to prevent multiplication is to ensure that the blackborders ARE part of the image.

In otherwords

if the map is too small for the resolution

you gotta put black borders, or at east random trees to fill in the resolution

it does work, I did fill the image with the black borders, and all I get now is the image dead center and the black borders around it

that's that

it's kind of a hassle, but, it works.

D.W
Hmm right now the only solution is making the map size bigger and fill it up with black tiles.

Original thread: https://forums.rpgmakerweb.com/threads/parallax-map-multiplies.54797/