Independent Health Bars

Welcome to our brand new Clickteam Community Hub! We hope you will enjoy using the new features, which we will be further expanding in the coming months.

A few features including Passport are unavailable initially whilst we monitor stability of the new platform, we hope to bring these online very soon. Small issues will crop up following the import from our old system, including some message formatting, translation accuracy and other things.

Thank you for your patience whilst we've worked on this and we look forward to more exciting community developments soon!

Clickteam.
  • Hello so i know this has been answered before but i tried it and it didnt work as well in 2.5
    Im creating a castle defense game where enemies run in from the left and you shoot them before they get to you. I want to create a health bar above each enemy that will tick down. Some enemies will take 5 bullet others 3. Any help will be greatly appreciated.
    Thanks
    Taylor

  • Cant you just create your health bars (individual for each enemy) and set their positions above the enemies? Once the counter reaches 0 destroy it along with the enemy. Or you could destroy the enemy and set the counter position outside the play field, set the counter to 5 or 3 again and when that enemy is created again the counter will automatically move to that enemy. I don't know if this is the best way, but I'm sure it would work.

    [SIGPIC][/SIGPIC]Please login to see this link.
    Please login to see this link.

  • Fusion will handle this automatically for you.. say you have 10 enemies, you need to create 10 counters and then

    always - set x/y of energy bar to x/y of enemy
    and
    always - set counter value to "health"(alterable value) of the enemy.

    easy.

    Check out my Game on Itch.io
    Please login to see this link.

  • Hey KliK-iT, Nice example!

    I hope you don't mind, I changed it ever so slightly so that there is only one counter, and uses a fastloop to create new counters. It is attached.

    Please login to see this attachment.

    Please login to see this link.|Please login to see this link.|Please login to see this link.
    Need art for your game? I'm currently available for work.
    3D Modeler, Rigging TD, Animator for hire - Please login to see this link.
    Please login to see this link.

  • Don't mean to hijack this thread, but after trying some of the examples and trying to accomplish this myself I'm trying to figure out how to only show the HP above an item that is selected?
    eg. click on a wall and the HP of the wall will be shown above it?

    Here is what i have so far:
    Please login to see this attachment.

  • macca02 for this you only need one counter bar that sets its value to the alt. value (HP) and its position to whatever you click on.

    Please login to see this link. | Please login to see this link. | Please login to see this link. | Please login to see this link.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!