46. Unity3d Tutorial - GUITexture Healthbar 2/3

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
5,131
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Sep 17, 2010

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

Category:

Howto & Style

Tags:

License:

Standard YouTube License

  • likes, 0 dislikes

Link to this comment:

Share to:
see all

All Comments (14)

Sign In or Sign Up now to post a comment!
  • : error CS0103: The name `Messenger`1' does not exist in the current context

  • 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

  • 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;

  • 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...

  • @ohmyfsm Attach VitalBar.cs to both "Mob Health Bar Prefab" and "Player Health Bar Prefab". Remove PlayerCharacter.cs if it is attached.

  • @TalosAT Thanks. I solved it by doing something similar, but I forgot what :))

  • @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 =)

  • 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?

  • me too :S

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more