Hello,
I have a progress bar and this function bound to it:
I would like the bar to display the score, in percentages. I am dividing 1 / 500 (max score) and then * current score. It would go like (1 / 500) x 10 = 0.02 or 2%, which should otherwise fill the bar by 2%. But it doesn’t. The progress bar never gets filled, no matter the score - and I wonder if the int to float conversion is the fault here.
The ‘SCORE’ is the total score or the sum of two player scores, nothing fancy. So P1 + P2 = SCORE.
The widget is created and added to the viewport - tied to the BeginPlay event.
Maybe it has to do with the actual score system, as in, maybe it doesn’t check the score at all? I am so confused.
Any help would be much appreciated!