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.
asked Jul 15 '17 at 01:48 PM in Blueprint Scripting
Are you trying the Lerp node?
answered Jul 15 '17 at 03:12 PM
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.
answered Jul 15 '17 at 04:33 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here