Progress Bar Issue
Hello men, i have created these pics to explain the problem: there is a progress bar and it works normally for the first level. 10 points and each point the bar increment by one unit. So when i reach 10 points the bar is empty with new level. When i reach 11 points there is the great issue: Next level is composed by 20 points but the bar is at 55% at 11 points and the other 45% is composed by 19 points. Can you help me? Where is the mistake?
(comments are locked)

Your answer
Follow this question
Once you sign in you will be able to subscribe for any updates here
Not entirely sure, but what stood out to me was the part after the branch in which you set CurrentXP to (CurrentXP  NeededXP).
It could also have something to do with your Add Grade function that I don't believe you've attached.
Debugging this on your own is pretty simple, and learning how to do so would benefit you immensely in the future; you can start off by printing your values to the screen or watching them inside the blueprint itself at runtime, and make sure they make sense.
If you think about it, it makes sense; you have 11 points out of 20, which is just a bit over 50%.
According to the logic you described  your progress bar should display the difference between your current grade's minimal and maximal points. If you walk through this logic  when you hit 10 points, you go up to the next grade, which has a minimum of 10 points and a maximum of 20 (thus, 10 points are 0%, 15 points are 50% and 20 points are 100%).
The exact mathematical approach depends on how you want to set it up exactly, but it shouldn't be too complicated (I'd probably multiply Grade by something to get the relevant numbers).