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. 

How to make smoother float

I want to know how to make a smoother float changing. I wnat to make healthbar which is changing itself smoothly.

Product Version: UE 4.15
Tags:
more ▼

asked Jul 15 '17 at 01:48 PM in Blueprint Scripting

avatar image

SuperVulcan
6 1 3 3

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

2 answers: sort voted first

Are you trying the Lerp node?

more ▼

answered Jul 15 '17 at 03:12 PM

avatar image

vivalabugz
729 10 8 13

avatar image SuperVulcan Jul 15 '17 at 03:35 PM

whats that?

avatar image SuperVulcan Jul 15 '17 at 03:37 PM

oh that may work

avatar image vivalabugz Jul 15 '17 at 03:52 PM

Let me know if it does

avatar image SuperVulcan Jul 15 '17 at 04:12 PM

lerp node justi pick a number based on the alpha didnt work

avatar image SuperVulcan Jul 15 '17 at 04:13 PM

i would use a timer but u cant use timer in widget BP

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

Create an animation where time 0 is 100% health and time 1 is 0% health. Then instead of setting the values directly on the variable linked to your health bar, you play the animation from the current health point (e.g. if health is 70% you play from 0.3 onwards) but play only to the target health (e.g. if target health is 50% you play to 0.5 only). This way your health bar will move smoothly at a rate of 1% per 10 miliseconds. you can of course adjust this time by changing the speed of animation play.

Hope this makes sense. Let me know if that helps.

Best, Alessandro

more ▼

answered Jul 15 '17 at 04:33 PM

avatar image

Al Ananias
247 6 10 18

(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