Energy Bar - Help

Hello! I was doing a scheme where when I press T key the character spend Energy til 0 (decrease), after this reload energy with the same logic, but increasing value til 100. But have problem. The energy reaches 0 but dont increase after this, even check its value.

How can I solve this problem?

Here the Blueprint:

Imgur

It does not exist it says. I would recommend using puush for sharing screenshots.

yes it is not present you are right

I always use imgur! =)

Hi Tulk,

I don’t know exactly what you want, but i guess it’s this what you want:

Logic behind the energy (more or less) in your character.

This is what your bind function may look like.

Binded here:

I’m going to assume your are a Spanish talker because the spanish words in your link, if you aren’t ignore the next lines (i’m telling you i can explain it to you in spanish too). By the way, the link is dead.

Si hablas español puedo explicartelo en español si quieres. Re-sube el enlace, este que has puesto no va.

Greetings, XyonFox.

What I want to do is more complex. The bar image decrease when press T key (10 value) ultil 0, so increase again (the bar) with (10 value) until 100.

  • 10/ + 10;

PS: Use the same bar! How can I do this?

PS2: I’m brazilian guy

OH i see… i did a silly mistake on the last image, right after converting the int value to float it must be divided by 100 like this:

Then it should be fine. Now i must know if you managed to bind the bar percent value to this function. ( it’s where i highlighted on the img I uploaded earlier.)

I hope this solves it :slight_smile:

Thanks a lot! Work perfect =)

I was two whole days trying to do this… Saved my time! xD

Great :slight_smile: You’re welcome =D
Mark my answer as valid and you are done :stuck_out_tongue:

Just one more thing. For Health, like Zelda, how can I add the hearts so that they are usable as a single object?

Well, this is a little complex to explain / figure out

This is my theorycraft:
you would do an horizontal box in which you add as child the hearts (custom widgets, so they can handle being quarted, halved or blanked out), and then when taking dmg you will remove them or blank them out ( like in zelda, i really hated when my hp got tooo low hehe) …

I may dig it later tomorrow, and try to recreate it myself. If I do so i’ll tell you.

Ok, thanks! xD