PDA

View Full Version : How to get Health to display correctly?



Alucard384
10-23-2010, 08:37 AM
I'm currently attempting to make a HUD in scaleform and I have everything in place with all the Action Script and Unreal Script but when I test the health it doesn't scale down correctly.

http://content.screencast.com/users/Alucard384/folders/Jing/media/58f2bb21-bba6-422d-a0d2-7c4f43d7c36b/ingameHealth.png

This is what it should look like when the player has full health.

This is what it looks like when the player takes damage.

http://content.screencast.com/users/Alucard384/folders/Jing/media/ad4bfd48-ac53-4e59-87da-fa39373e5f0a/ingameDamageTaken.png

And this is how it should scale down when it takes damage
http://content.screencast.com/users/Alucard384/folders/Jing/media/a8ed160b-36df-48f5-bb86-ebd9ade05a5c/partialhealth.png

Any ideas to help me to get to where I need to go?

Matt Doyle
10-25-2010, 11:24 AM
You cannot scale a round image and get the desired look in this scenario. It just won't work. In this case, you're going to need to use one of two options:

1. a mask
2. a keyframe animation

Alucard384
10-25-2010, 04:24 PM
Yeah I already had the keyframes in I just didn't know how to implement it into uscript but found out you can use GoToAndStopI so it goes to the frame relevant to the health.