Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to create multi-page screen with libgdx scene2d?

I want to create a multi-page level selection screen (just like in angry birds level selection) that user could navigate between pages by dragging (swiping) his/her finger on the screen horizontally.
I checked ui widgets in scene2d so I just found 'ScrollPane' that maybe useful but its functionality differs from what I want.
Anybody has any ideas?

like image 421
Aliaaa Avatar asked Nov 25 '25 16:11

Aliaaa


1 Answers

nEx.Software has a nice little tutorial that explains how to do just this at http://nexsoftware.net/wp/2013/05/09/libgdx-making-a-paged-level-selection-screen/. His solution involves extending ScrollPane to add paging functionality.

like image 183
Justin Mullin Avatar answered Nov 28 '25 06:11

Justin Mullin



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!