Skip to main content

Report this content

We want the Dreams coMmunity to be a safe, diverse and tolerant place for everyone, no matter their age, gender, race, sexual orientation or otherwise. If you believe this content to contradict these principles, you can file a report for our coMmunity teams to investigate.

Note that misuse of the reporting tool will not be tolerated.

Item being reported:

A forum post by MidnightManiac

I want an health bar attached to an enemy object that starts at 100. I need it to deplete with every bullet collision by -10 points every time the enemy object is hit and I want the health bar or percentage to display on screen (hud type thing). When it reaches zero I want the enemy object to die.

What I tried:
Created a microchip and attached it to vehicle. Attached a collision detector to microchip, and tweaked it to collide with 'missile' (tag of bullet sculpt is 'missile').

I then added a health gadget to the microchip and tweak it to 100 max, I didn't know where to attach the collisiin detector to the health gadget so just connected to power...?

I then added a text displayer to the side of the screen and attached the health gadget's current value to the text displayer.

The text displayer just counts to 1 and then back to zero...

Oh dear! Your browser is either unsupported or there has been a problem loading the page.