Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Nietzsche on September 06, 2019, 05:53:04 PM

Title: Healthbar hovering over unit
Post by: Nietzsche on September 06, 2019, 05:53:04 PM
Hello, I have a question regarding healthbars, while so far I created healthbars with sliders integrated in the UI, I now want to have the healthbars hovering over the units they belong to. It is for a 3D game, and I would be curious, if that is possible by using playmaker.
Title: Re: Healthbar hovering over unit
Post by: Broken Stylus on September 10, 2019, 05:03:44 AM
Yes. You're looking at displaying a sprite in billboard fashion so it always faces the camera.
Title: Re: Healthbar hovering over unit
Post by: heavygunner on September 10, 2019, 09:39:47 AM
I did it via this sample package.
Check it out  https://hutonggames.com/playmakerforum/index.php?topic=10979.msg51924#msg51924
Title: Re: Healthbar hovering over unit
Post by: Nietzsche on September 15, 2019, 04:14:46 AM
I tried that out, but unsing a slider instead of the text as a healthbar didn't work.