Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (781)
Games in Android Showcase (233)
games submitted by our members
Games in WIP (857)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  [LibGdx] Any tutorials on making a HUD for games :)  (Read 3222 times)
0 Members and 1 Guest are viewing this topic.
Offline Delta517

Senior Devvie

Medals: 4
Projects: 2

« Posted 2013-07-02 18:01:32 »

Hi! So Im currently trying to make a HUD with a healthbar and a Score string in my game, but I cant find any tutorials on how to do it in LibGdx with Scene2D Sad Do you guys know anyone? Smiley
Offline ReBirth
« Reply #1 - Posted 2013-07-03 02:40:42 »

Get a table instance. Set the x, y, height, and width. Use table's debug feature to make sure the position and size are right in first place. Then after the table done, you can populate it with scene2d.

Offline TrinityGamer

Senior Newbie

Medals: 2

« Reply #2 - Posted 2013-07-08 08:12:00 »

Well, most huds are basically 'draw box, draw second smaller box in that box, second box size equals hp over first box size' or something like that. it's not very hard. but if you really want to learn, then i would assume that thecherno would probably have the best tutorials. (sorry, but i always seem to tell people to watch these tutorials):

while i don't think he's gone into how to make an hp bar yet, he has already covered everything you need to know in order to make one (pretty much, all you need to cover is the 'tile' set of tutorials, then you'll know everything you need in order to make a hp bar, as for the text thing, i think this might help you:
Pages: [1]
  ignore  |  Print  

hadezbladez (1176 views)
2018-11-16 13:46:03

hadezbladez (530 views)
2018-11-16 13:41:33

hadezbladez (1187 views)
2018-11-16 13:35:35

hadezbladez (273 views)
2018-11-16 13:32:03

EgonOlsen (2570 views)
2018-06-10 19:43:48

EgonOlsen (2789 views)
2018-06-10 19:43:44

EgonOlsen (1565 views)
2018-06-10 19:43:20

DesertCoockie (2269 views)
2018-05-13 18:23:11

nelsongames (2122 views)
2018-04-24 18:15:36

nelsongames (2816 views)
2018-04-24 18:14:32
Deployment and Packaging
by philfrei
2019-02-17 20:25:53

Deployment and Packaging
by mudlee
2018-08-22 18:09:50

Java Gaming Resources
by gouessej
2018-08-22 08:19:41

Deployment and Packaging
by gouessej
2018-08-22 08:04:08

Deployment and Packaging
by gouessej
2018-08-22 08:03:45

Deployment and Packaging
by philfrei
2018-08-20 02:33:38

Deployment and Packaging
by philfrei
2018-08-20 02:29:55

Deployment and Packaging
by philfrei
2018-08-19 23:56:20 is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!