Scaling static mesh with blueprint
I am trying to make a static mesh shrinking/scaling down only on the Z axis.
It is suppose to be a healthbar but instead of using a widget i need it to be a static mesh that will shrink when the health is being deducted. I have my health system fully set and have tried scaling the static mesh myself but as soon as the game starts the mesh gets distorted into a cube and literally scales down on each axis when damage is inflicted to it.
here is a screenshot of how far I have gotten, any more information needed please let me know.
asked Mar 07 '17 at 01:23 PM in Blueprint Scripting
You were scaling it on all axis. This is assuming your health bar is scaled to 1,1,1 at the start though, if not, adjust the numbers.
Also, you don't really need to do that on tick, you could just scale it whenever there is damage instead.
answered Mar 07 '17 at 01:46 PM
try using SetTransform, and break the input transform struct (right click -> break struct), then you should have a scale input in there.
answered Mar 07 '17 at 01:26 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here