your stylebox flat for background and fill are totally different colors?
if you copy and paste it, it will share same color even if you change the other one.
your stylebox flat for background and fill are totally different colors?
the colors are different
ok, so that’s weird one, because you said the value changed but the color doesnt get reflected
which godot version you are using?
i tried to use tween to change the value every second, and it works as intended, godot 4.2.1:
He uses Godot 4
need to be more specific
sorry, he says 4.1.2
cant find anything related to progressbar fix for future 4.1.3 and 4.1.4
if you can show the picture in action the progressbar doesnt work as intended, then it will be helpful to identify what is actually wrong
because it’s not normal for the progress bar value to be decreasing but the color stay the same
I can’t upload the video straight onto my reply, so I put it in a google drive link: IMG_3416.MOV - Google Drive
you should have viewing privileges, but let me know if you can’t access it. Also, sorry if the resolution is poor, you may have to fullscreen it to see properly lol
i notice the orange bar doesnt decrease eventhough debugger prints said otherwise
Yeah, thats the issue he was having
my suggestion is, maybe try the textureprogressbar instead. as for the color/texture, put a white dot texture and tint it and make it stretch to fill
He says he’ll try that and get back to you when he finishes (fingers crossed)!
In my case, this was due to rotating the bar using 2D Viewer tooltab rotate. The bar expects the upper left pivot point to be the top left of the bar, but if you rotate, it visually becomes a different corner. Try remaking and resizing the bar instead of rotating it.
Interestingly, I found this by changing “begin to end” fill mode to “top to bottom”. However, begin to end should still have had a bottom to top fill effect, visually. Messed around a bit and found that the “filled” portion completely disappears if the bar is too short. As I approach size.y 5 the fill completely loses proportion to the bar. At 4, it disappears.