How can I prevent the camera from going out of bounds and showing this black background at the edges of my map?

1734365592637.png
Some more information would be helpful.

Is your map smaller than the game's resolution? If the map is same size or even bigger, there shouldn't be any black borders.
If you go to full screen and your game doesn't match 16:9 for example, it will fill the dead space with black.

I assume, you don't have any black borders, but they show up as soon as you walk towards the borders of your map. That's not the default behaviour. Plugins maybe?
It's fairly simple, like Zia said. If your map is smaller than your game window, the empty space will be black.

For future reference, make sure to make a proper post to get more people to help with, rather than just a headline and an image. This ain't reddit.😅
Some more information would be helpful.

Is your map smaller than the game's resolution? If the map is same size or even bigger, there shouldn't be any black borders.
If you go to full screen and your game doesn't match 16:9 for example, it will fill the dead space with black.

I assume, you don't have any black borders, but they show up as soon as you walk towards the borders of your map. That's not the default behaviour. Plugins maybe?
My map is 100x100 and the game is 960x720p. I don't mean the black borders caused by a resolution or aspect ratio mismatch though, these borders are created by the game itself at the edge of my map, not the edge of the window. If i set a sky parallax background, for example, the border would be that instead of black. I want to make it so the camera stops before that is shown and the player can just walk to the edge of the map which would then also be the edge of the window.
1734366554056.png
Do you have any plugins active?

By default, the camera won't move past the map boundaries, except your map has empty spaces.
unfortunately NO, this cannot be something simple as too small a map - because in that case the map would still be centered and not sided.

something messed up the camera handling, and that means we need to see a screenshot of all your plugins

EDIT: ninja'd
My map is 100x100 and the game is 960x720p. I don't mean the black borders caused by a resolution or aspect ratio mismatch though, these borders are created by the game itself at the edge of my map, not the edge of the window. If i set a sky parallax background, for example, the border would be that instead of black. I want to make it so the camera stops before that is shown and the player can just walk to the edge of the map which would then also be the edge of the window.
View attachment 325890
Do you have any plugins active?

By default, the camera won't move past the map boundaries, except your map has empty spaces.
Yes, I am using these:
1734366944860.png
1734366975555.png
"5G9LDnU7 - This plugin help to stretch the screen by 200% upscale factor"
Wild guess would be, to deactivate this one and check if the camera is fine.

If that plugin is not the issue, deactivate all of them, and see if the error is still there. You can go through them one by one to find the problematic one.
"5G9LDnU7 - This plugin help to stretch the screen by 200% upscale factor"
Wild guess would be, to deactivate this one and check if the camera is fine.

If that plugin is not the issue, deactivate all of them, and see if the error is still there. You can go through them one by one to find the problematic one.
Yeah that fixed it, but I kinda needed that plugin. Without it, the game is ridiculously tiny. Is there an alternative plugin I can use to zoom back in?
1734368425673.png
Is it an option to scale up all your assets by x2 and use the intended size that way on 100% resolution?

I wouldn't recommend to permanently use a zoom, as you might run into more issues later.
Is it an option to scale up all your assets by x2 and use the intended size that way on 100% resolution?

I wouldn't recommend to permanently use a zoom, as you might run into more issues later.
Not really because I'd have to rebuild all my maps, right?
I have never changed the scaling of assets midway through, but I think you might be fine.

If you change the tilesize in your System 2 settings, everything might appear broken. But if you import the resized assets, they will automatically go back to normal, as the mapping is saved by a line of tile index numbers. You can create a copy of your project and give it a try.

Edit: But, if zooming is the best way for you, there are some Plugins out there. I don't have a recommendation, as I didn't use any.
Without it, the game is ridiculously tiny.
Why? Have you changed what size the tiles and characters are?

Your window dimensions are only slightly larger than normal - I set my test map to the same size and nothing looks tiny.

1734449652041.png


From the look of the screenshot in your first post, it does appear that the character looks tiny because they're drawn tiny - why did you choose to do that for your game's graphics? You made the game window larger than normal, but then the art assets smaller?

Why not do what @Zia_ said and upscale all of your art instead of trying to manipulate it during runtime with a plugin?

I think you're going to have a hard time getting the various aspects of your game the the UI looking good if you're not using 48x48 or at least 32x32 tiles, and character artwork based off that.

And no, I don't see any reason you would need to edit any of your maps, what reason do you see for it? A tile is a tile.
How about this one?

Original thread: https://forums.rpgmakerweb.com/threads/how-can-i-prevent-the-camera-from-going-out-of-bounds-and-showing-this-black-background-at-the-edges-of-my-map.173957/