I´m have a question about LibGDX Game Engine.
Hope you can help me, sorry for my bad english :)
Greetings coco07 ;)
For UI with libgdx i would always use Scene2dUI
. To let you know: scene2D
uses SpriteBatch
. A scene2D Stage has its own Camera
and SpriteBatch
, you can manipulate. This gives you the possibility to move the Camera
for this Stage
arround. You can simply draw your game-stuff and when you need a menu, call the stage.draw()
in your render()
method. This calls draw()
for every Actor
on this Stage
. For menus i would suggest to use TableLayout. One thing to remember: Call spritebatch.end()
before calling stage.draw()
.
Also read this: Scene2D
Hope it helps.