Great! Just passing on a last bit of advice I got from the contributors chat: you might wan’t to provide an option to disable the colored bars in the final game. Apparently non black bars that are on too long might burn in on OLED screens.
1 Like
okay so since i need to change the color palette sometimes, i’ve put the draw black bars function on process for now so that it will update even when you aren’t changing the screen size
func _process(delta):
__draw_black_bars()
the problem is i get literally one of these errors per frame
E 0:00:02:0230 canvas.gd:54 @ __draw_black_bars(): Drawing is only allowed inside NOTIFICATION_DRAW, _draw() function or 'draw' signal.
<C++ Error> Condition "!drawing" is true.
<C++ Source> scene/main/canvas_item.cpp:680 @ draw_rect()
<Stack Trace> canvas.gd:54 @ __draw_black_bars()
canvas.gd:36 @ _process()
but it is working, is the thing. without putting draw bars on process it doesn’t update and with that it does. is there a way for me to make this function update regularly that doesn’t spam all of these errors lol
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.