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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

pickup that speeds up a ProgressBar

how do you make a pickup that speeds up a ProgressBar

say i have a ProgressBar value that takes 10 seconds to got from full to empty

the pickup would speed up the ProgressBar value so it would only take say 5 seconds to got from full to empty

basically the pickup helps the player by speeding up the amount of time taken to got from full to empty

Product Version: UE 4.14
Tags:
more ▼

asked Feb 05 '17 at 02:16 PM in Blueprint Scripting

avatar image

dragonwaredna
6 1 2 1

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

2 answers: sort voted first

there's a unreal tutorial that does that does something similar to what you want to, using the a similar logic could solve your problem, in case you want to watch the tutorial: https://docs.unrealengine.com/latest/INT/Videos/PLZlv_N0_O1gYup-gvJtMsgJqnEB_dGiM4/mSRov77hNR4/index.html

But to make your progress bar goes from full to empty in 10 seconds then you're making a loop that decreases the bar for every time, let's say you remove 1% delay 0,1 seconds and loop it till it reaches 0, what you could do is promoting this "1%" to a variable, let's call it DecreaseRate, and when the player take the pickup change this DecreasRate to it's double.

more ▼

answered Feb 05 '17 at 04:18 PM

avatar image

veccher
1.1k 31 17 66

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

ok cool cheers will give it a try

more ▼

answered Feb 05 '17 at 04:37 PM

avatar image

dragonwaredna
6 1 2 1

(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