Come visit us at: http://www.burgzergarcade.com
We continue with another tutorial in our Hack And Slash demo made with the Unity3d Game Engine.
In this video, we will continue to set up our healthbar prefabs for our player and enemies.
Enjoy, and do not forget to subscribe, and favorite.
Community donated assets can be found here: http://www.burgzergarcade.com/hack-slash-rpg-unity3d-game-engine-tutoria
lSave time typing out the scripts, or just buy me some coffee: http://www.burgzergarcade.com/product/tutorials/hack-and-slash-tutorial-scripts
: error CS0103: The name `Messenger`1' does not exist in the current context
onald70 3 months ago
Firstly great tutorials, But I seem to have a little problem with the broadcaster and hoping you can help out . I followed your instructions and set the broadcaster to say curHealth is 20. And everything worked fine , debug said what it should. But then I changed curHealth to 80 and the broadcast receiving is still 20 :/ Before anyone asks yes, I saved the C# file it should've updated. I dont get it :S
TheMphillips91 3 months ago
I get this:
Assets/Scripts/HUD Classes/VitalBar.cs(17,17): error CS0266: Cannot implicitly convert type `float' to `int'. An explicit conversion exists (are you missing a cast?)
at:
_maxBarLength = _display.pixelInset.width;
QwertysChannel 4 months ago
I figured out why "We heard an event" only fires once. If the button "Collapse" is enabled in the Console it will group all similar outputs under a single output. Disable this button to see the repeating output...
kxmode 6 months ago
@ohmyfsm Attach VitalBar.cs to both "Mob Health Bar Prefab" and "Player Health Bar Prefab". Remove PlayerCharacter.cs if it is attached.
kxmode 6 months ago
@TalosAT Thanks. I solved it by doing something similar, but I forgot what :))
ohmyfsm 7 months ago
@ohmyfsm I had this same issue, I had removed the instances of Player / Mob health bar prefabs on my scene and forgot to put them back in, once I did the error went away. Hope this helps, if you already figured it out, maybe it will help someone else =)
TalosAT 7 months ago
I have an error, "Listener not found", when I click on it it sends me to the messenger script. I use Unity 3.2 pro, could it be the messenger is not compatible? And if so, how should I address this?
ohmyfsm 7 months ago
me too :S
Unity3dDino97 8 months ago