x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

How do I reset my experience points bar to empty without the player losing exp (UMG)

Hey everyone, I have a level up system and I'm using a UMG progress bar to displayer the experience if the player.

It works fine but the bar jumps to the current exp value along the bar when the new exp threshold is set. How do I reset the bar to a zero state without having an effect on the players exp?

Character BP alt text

Level up function in the Character BP alt text

UMG Widget Binding alt text

Product Version: Not Selected
Tags:
more ▼

asked Nov 10 '14 at 11:56 AM in Blueprint Scripting

avatar image

Kagamusha
173 37 33 44

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

3 answers: sort voted first

bro,

Nice problem.

You need two pieces of data. Think about the trip counter on your car, you have the miles this tank and the total mileage. Use an integer (or float) for a trip counter (current experience counter) and when it reaches its limit, add its value to the total experience, and reset the current experience counter to zero.

Hope this helps

more ▼

answered Oct 30 '15 at 10:29 PM

avatar image

UNSherman
73 4 6 6

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

Your inputs are backwards in the UMG Widget binding. What you have set is Current Exp/Max XP. Flip them around so that they are Max XP/Current XP.

more ▼

answered Nov 10 '14 at 12:16 PM

avatar image

RAVaught
704 44 28 68

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

Broaden the scope with 2 more floats?

A second setup on a smaller scale specifically for the widget. Current XP this level - start at zero - recieve XP input at the same time current XP does. Max XP this level - compare float. If Current xp >= Max XP this level, ding.

You can set and use both of these variables in the exact setup you have now. You can wipe these at Ding and set a new Max XP this level per level called from .csv.on Ding. You can do this without affecting the cumulative total.

Current XP will still hold a cumulative value. Max XP will still set an upper ceiling.

If you don't want to use .csv - a quick and dirty method is to get the current Max XP for level and apply a multiplier before set.

more ▼

answered Nov 10 '14 at 11:42 PM

avatar image

1PXL_Gryph
51 10 9 13

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question