Inverted Panel Sprite stretching

Basically you already know how a Panel sprite works, it splits the image into 9 segments and stretches the center slice of the image while keeping the outer 8 slices the same during the stretching process. Now what if we had the ability to invert that and make the outer slices stretch and keep the center slice the same. Why do I ask for this you say? Well because I feel like this might be the simplest way to have a sort of “Fog of War” effect without having to make a complicated system just to make that happen. Plus I’m pretty sure some other clever people can find other uses for such a feature. And since this is just an inversion of what you already have, I think it should be a simple matter to implement. And as for the UI for it, just a simple toggle like the “Repeat Borders and Center Textures” one is. Thanks in advance for responding.

Sounds interesting can you describe or show what the fog of war effect is?

It is more or less just an area that you cannot see beyond. Limiting what you can see as shown in this picture. Though I had to achieve this using a MASSIVE 5760 X 3240 image just to make it work without having to have a stupidly complex logic system, which is not exactly efficient. Hence why I brought up the idea in the first place

1 - GDevelop 5

2 - Can you explain how your idea would work for fog of war?
I have hard time understanding how it would help with it

OMG i did not read Bubble’s question which is same as mine

You meant center part to be visible part
I was assuming you are talking about each panel sprite being chunk of map
So that is why your idea did not make sense for me

Would make even more sense if I could share a video clip, but this site doesn’t seem to support that it seems.

Nah now your idea makes perfect sense
Just that it would not do any good if there is other light source

BUT you could do what you want with object masking
2023-06-28_10_39_SJjN95Keek_GDevelop