Progress Bar Gradually Filling Up With Collection Points

Hi guys,

So I have made a progress bar and basically I want it to gradually fill up every time I collect a coin. There are 20 coins in the level in total. I have kind of got it working, when I collect the first coin the progress bar fills all the way. So, it works to an extent, the problem is that I do not want it to fill all the way, I want it to fill gradually via the 20 coins.

I am new to UDK, I have been using it for like 2 months but haven’t done much blueprint work before so forgive me if this is a simple fix, but I just cannot figure it out.

Any help would be appreciated!

Welcome to UE4. Here is an example of what you could do.

Place this in your pickup BP:

Then put this on your Widget:

Don’t forget to bind the amount to your progress bar:

134252-3.png

Here is an example:

134259-example.gif

This may not be the most efficient method and some may have better ways however this is most basic and simple.

Hope this helps.

Hi thank you for your help!

I tried this out but I cannot bind the percentage to a variable, only to a function. Also where you have dragged off from “As Third Person Character” to Target>Picked Up Amount, I cannot do this either?

Create a variable in your character, in the example (ThirdPersonCharacter), called PickedUpAmount (Or whatever you would like to call it) and make sure it is a float variable. Then you will be able to cast to your character from the Widget and bind it to the Percent Bar

I found the problem, turns out all I had to do was change the variable type from integ to float! I appreciate your help and thank you!

How do you make it increase by more each time?