MZ Rendering UI Elements Outside Playable Game Area

Hey all.

Is there any known extension out there or maybe could someone help me a little on how to go about rendering ui elements / images / interactable menus outside the Spriteset_Map? (But still inside the game window)

My understanding is that Spriteset_Map is the top level object for all renderable sprites. Is there a way I can add child elements to that parent object and allocate chunks of the screen to them exclusively or..?

To be clear I am looking to render images to the screen that don't obstruct the gameplay at all.

I know that I could render the image to take up the entire right side of the screen at a higher layer, but that would still be obstructing the sprites underneath it - so things like enemies or npcs would still be running around behind that image.

---

Really Quickly Hacked-In-Paint Example:

ddaadTest.png
The Spriteset_Map fills the entire game window. So I'm a little confused by what you're going for, still.

What's the difference between
I could render the image to take up the entire right side of the screen at a higher layer, but that would still be obstructing the sprites underneath it - so things like enemies or npcs would still be running around behind that image.

and the image you posted?

Is your point that the right-most point of the map that we see is actually the right-most border of the map? If yes, you could simply make all of your maps have that much blank space on the right so you could walk to the border and still have the image.
The Spriteset_Map fills the entire game window. So I'm a little confused by what you're going for, still.

What's the difference between


and the image you posted?

Is your point that the right-most point of the map that we see is actually the right-most border of the map? If yes, you could simply make all of your maps have that much blank space on the right so you could walk to the border and still have the image.

That could work but it would limit my ability to have a map that extended left to right at all.

Spriteset_Map I believe is the parent to all events / tiles / characters.. so my idea was to reduce the size of the Spriteset_Map renderable area to steal some of the screen space for a dedicated UI-only location.

I essentially wanna shrink the playable area of the game by an offset so the UI is never obstructing something happening in the game.
That could work but it would limit my ability to have a map that extended left to right at all.
I'm still missing my ticket to be on your train of logic there 😉

If you reserve that space on the right side of your map, you can go fully to the right, see the border of the map, and the image you want is next to it.

If you start moving to the left, then the right side of your map would go underneath the image and you wouldn't see it exactly in the way the right side of your map would go off the screen if the window were smaller and you still wouldn't see it.

I essentially wanna shrink the playable area of the game by an offset so the UI is never obstructing something happening in the game.
I just don't understand what you're saying the difference is between the UI obstructing something happening and that something happening off the screen, as per the default window functionality.

I'm not saying you're wrong, I just don't get it from how you're saying/explaining it.
I have only glanced over this. Are you talking about changing 4:3 pillar boxes so that the game remains 4:3 but the pillar boxes are filled so it fits a 16:9 screen? Something like this:
Before sadness. 4:3 with un-burninated pillar boxes.
trogdorSad.png


After coolness. 4:3 but with burninated pillar boxes.
TrogdorBurninating.png
I'm still missing my ticket to be on your train of logic there 😉

If you reserve that space on the right side of your map, you can go fully to the right, see the border of the map, and the image you want is next to it.

If you start moving to the left, then the right side of your map would go underneath the image and you wouldn't see it exactly in the way the right side of your map would go off the screen if the window were smaller and you still wouldn't see it.


I just don't understand what you're saying the difference is between the UI obstructing something happening and that something happening off the screen, as per the default window functionality.

I'm not saying you're wrong, I just don't get it from how you're saying/explaining it.

I think I understand better what you are saying now. Make sure there's enough dead space on the screen that the UI can scroll past all playable parts of the level - and then no matter where the boundary of your world is, nothing will be obstructed indefinitely.
I have only glanced over this. Are you talking about changing 4:3 pillar boxes so that the game remains 4:3 but the pillar boxes are filled so it fits a 16:9 screen? Something like this:
Before sadness. 4:3 with un-burninated pillar boxes.

Love your trogdor example but no. I still see pillars as a necessary evil to accomodate different resolution ratios.

I was talking about stealing chunks of the playable canvas area to be dedicated just to UI.


(Sorry for double post, was trying to reply to both users and I accidentally created a new post)
Make sure there's enough dead space on the screen that the UI can scroll past all playable parts of the level - and then no matter where the boundary of your world is, nothing will be obstructed indefinitely.
Yes. That's what I would suggest you try first, because you can do it with existing plugins. Use one to bind the picture to the right part of the screen, and a camera plugin to re-center the player on the left.

If that doesn't work out the way you want, then you can get messy with learning/commissioning code to alter the map's drawing canvas and put the image next to it separately.

Edit: Actually, I think I'm wrong. Because just doing that won't allow the game to scroll such that you'd be able to get the border of the map in the center of the screen. By default, so long as your map at least fills the screen, it will stop scrolling when the border is at the edge of the window.

So I take it all back...I think you have to go the custom route.
Ok I think I figured out how to make this work with @ATT_Turan advice.

The problem is now I need an extension that offsets the player / camera focus from center of the screen to be closer to one side of the map.

Any plugins that do this? I know there are plugins that can offset camera focus.. but can you offset the player sprite as well? Is it just a Camera + Map Scroll offset?

Original thread: https://forums.rpgmakerweb.com/threads/rendering-ui-elements-outside-playable-game-area.166774/