I want to have a Texture progress node displaying the amount of fuel my main character has remaining. This node displays a value from 0 to 100, so to get a percentage of fuel vs maximum fuel I used this code:
$CanvasLayer/TextureProgress.value = (fuel / MAX_FUEL) * 100
However, the progress bar simply appears completely empty. I tested it and it seems to work fine with any static value or single variable, which confuses me as this equation should be a plain integer from 0 to 100. Is there any solution for this, or am I just being dumb and doing something wrong? Thanks in advance!