How to make a responsive game?

Godot Version

4.2

Question

I’m having trouble in the responsiveness of my game, I know I can change the stretch mode to viewport and the aspect to expand in the project settings, but this solution makes it to where the UI is being stretch which I hate, do you guys have any solution to where I can keep the aspect ratio of my sprites but change it’s size base on the screen size of the device that the game is being played at?

I also tried the different stretch mode and aspect but it adds this black border if the screen size exceeds the sprite size, and I don’t want that

this question is not about responsiveness but UI.

read the docs or look up some tutorial on godot Controls.
stretch mode in godot is just one part. you chose between stretching the Control nodes to fit the screen or keep them at the same size in pixels, the rest is up to your.
stretching can be used with games like Counter Strike where you want the HUD to stay at the same size at all resolutions. otherwise In high resolution the HUD would look too small and in low resolutions it will look too big, which is what happened in Counter Strike 1.1/1.6

the other mode maintains the UI size which you want if you know what resolution the user is going to use. some games have alternate UIs for different resolutions.
this can be combined with viewport scale, which is used in some Turn based games and managerials and modern FPSs to make the UI smaller or bigger.

as I said, read the docs or find a tutorial.

Controls can be used with anchor presets, these allow to expand in one or two directions, covering the entire area. this is combined with Control nodes so the node expands to cover the parent node. it is also used with Container nodes.
anchor presets also allow to “hang” the controls from a corner of the screen or the center. this is used to create a menu bar or put a kill indicator in the corner or a button, or a HUD in the center. they also work with Container nodes.

Container nodes set the size of children automatically and can be used to set a min or max size of the children. they can also expand to fit content.

usually we combine nested VBoxContainers and HBoxContainers to create pretty much any UI system.

If you post a picture of what you are trying to achieve maybe we can help you more.