set max score
I have created a quiz game that tallies up the user's score. The issue is that it goes above %100. It currently is setup if the user gets above %70 it states either pass or fail. I have tried a clamp but it's not working properly. I have attached some images.
asked Aug 09 '18 at 02:31 AM in Blueprint Scripting
Clamping does not change the value of the clamped variable. If you want to apply the clamp, you need to update the variable as well. In your case the percentage is a part of a struct. You can update the struct by setting its member to the clamped value.
Follow this question
Once you sign in you will be able to subscribe for any updates here