+2 votes

I am new to godot and started making a simple pixel game.
For this I set the stretch mode to viewport and the aspect to keep.
So i get black borders at the edge of the game. But my game has a black background.
So i want to change the color of the bars sadly i don't know how.

in Engine by (331 points)

The Visual Server API for Godot is what you might need. Their is a black _ bars _ set _ images() method that you can use. https://docs.godotengine.org/en/stable/classes/class_visualserver.html#class-visualserver-method-black-bars-set-images

1 Answer

0 votes
Best answer

So i want to change the color of the bars

AFAIK there currently is no option to do that, other than coding it yourself. Take a look at this tutorial if you're interested in doing that.

by (10,580 points)
selected by
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.