aWeirdo Posted February 21, 2016 Share Posted February 21, 2016 Hello guys, I have been working on a small 1v1 multiplayer fighting game for learning purposes, I'm looking for ideas on how it would be best to handle health-bar's that floats above player's heads. How would you build it up? sprites? billboard's? I'm thinking of something that have a fixed size, and within that, health is devided into bars of 100 HP, so, if a player have 1250 / 1250 HP, there should be 12.5 bars and the entire healthbar frame should be filled. if a player have 800 / 1250 HP, there should be 8 bars and they should fill (800 / 1250 * 100)64% of the entire healthbar frame, rest of it should be empty / transparrent. I hope it makes sense and someone have a good idea on how to approach it Cheers Quote Link to comment Share on other sites More sharing options...
adam Posted February 21, 2016 Share Posted February 21, 2016 http://www.babylonjs-playground.com/#3HQSB#1 http://www.babylonjs-playground.com/#3HQSB#4 GameMonetize, Nabroski, jerome and 2 others 5 Quote Link to comment Share on other sites More sharing options...
aWeirdo Posted February 21, 2016 Author Share Posted February 21, 2016 Thanks, @adam, feel kinda dumb now :), so tired i didn't even think about searching before asking.. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.