I whant to get my home screen to be scrollable to left and right. I use scene2d and it should be like: Credits screen / Singleplayer screen / Multiplayer screen / Options...
I know how to handle Input don't explain this...
Questions:
- Schould i use for every screen a different Stage?
- Does it have somting to do with Viewport?
- If the home screen gets called does it take long to initialise the stage/s
- If 3 is true, how can i load the while an splash screen is displaying?
To answer your questions:
ScrollPane
though (see example below).As you can see, there are multiple ways to get such a scrolling screen. I have personal experience using the
ScrollPane
to achieve this solution. See: http://libgdx.badlogicgames.com/nightlies/docs/api/com/badlogic/gdx/scenes/scene2d/ui/ScrollPane.html and http://nexsoftware.net/wp/2013/05/09/libgdx-making-a-paged-level-selection-screen/