Topic: Life bars acting weird

So i recently made 2 nice little life bars for my game and I put them in like this

http://i.gyazo.com/512b228406a9b10356ee27744dea6494.png

I go to preview and they look like this

http://i.gyazo.com/7a02492407bf727e4eff72a0a780ff30.png
and this
http://i.gyazo.com/73c94bc745980aee2c27b32ff7723951.png

then i play game and they look like this in game

http://i.gyazo.com/78f6eb4020ad7fed6daaadf724bd18ba.png

Any idea? Or suggestions

Share

Thumbs up Thumbs down

Re: Life bars acting weird

The 2nd player has a strange thing with flipping.  I suggest looking in the GUIScripts.cs file and see how it draw the texture, you should be able to fix it from that.

Otherwise, wait just a little bit longer and you can use Unity GUI in UFE 1.6 smile.

BTW, you'll need to apply a trick in order to get the life bars to be filled with an angle cut.  Be default, filled bars will only fill vertically/horizontally cut...

Share

Thumbs up Thumbs down

Re: Life bars acting weird

Domainator wrote:

So i recently made 2 nice little life bars for my game and I put them in like this

http://i.gyazo.com/512b228406a9b10356ee27744dea6494.png

I go to preview and they look like this

http://i.gyazo.com/7a02492407bf727e4eff72a0a780ff30.png
and this
http://i.gyazo.com/73c94bc745980aee2c27b32ff7723951.png

then i play game and they look like this in game

http://i.gyazo.com/78f6eb4020ad7fed6daaadf724bd18ba.png

Any idea? Or suggestions


In your image editor that you used to make the Fill Image (GIMP, paint, etc.), make a copy of the fill image, name it fillbar2 or something, it doesnt matter. Then open the copy and simply do a horizontal flip (I believe all of the image editors have this feature.) then save, then import the copy image, apply it in UFE, and when you play it will be fixed.

Share

Thumbs up +2 Thumbs down

Re: Life bars acting weird

Twrmois wrote:

In your image editor that you used to make the Fill Image (GIMP, paint, etc.), make a copy of the fill image, name it fillbar2 or something, it doesnt matter. Then open the copy and simply do a horizontal flip (I believe all of the image editors have this feature.) then save, then import the copy image, apply it in UFE, and when you play it will be fixed.

For now the fixed the situation Thanks!

Share

Thumbs up Thumbs down