I'm working on a "special attack" bar that has 8 frames. You have to fill up the frames by attacking enemies and getting points.
I'm trying to figure out how to convert the numbers so I can get the bar animations (0 to 7) using a percentage of the points acquired.
So for instance, if you need 15.000 points to get the special attack, getting 1.875 points would change the bar sprite to frame 1, if you got 3.750 points the bar would go to frame 2 and so on.
Any help is appreciated!