Questions tagged [scene2d]
Scene2D is the scene graph library that comes with LibGDX.
89 questions
1
vote
0
answers
49
views
LibGdx switching between multiple UI panels
Let's say I have a game screen with a game world stage and UI stage. UI has a build button in the corner which should open a full screen build menu window/panel while hiding game world and the ...
0
votes
0
answers
59
views
I use skin composer, I want to create scene in scene composer, I can't add text buttons even though I created text buttons
I create text buttons, add every image and font, but it's still disabled when I want to add button in scene composer. I'm probably doing something wrong.
0
votes
1
answer
76
views
Play each scene at godot 3.1
I have created a project.
And I have saved 20 scenes for 20 game levels.
I have designed each scene but when I hit f5 to play each scene, it shows level1 scene.
I don't know what the problem is.
1
vote
0
answers
166
views
Libgdx table contents are expanding beyond widget bounds
I have a libgdx table that initially looks like this...
And I'd like the last cell to expand so that the logical bounds fill the widget bounds. As soon as I set the last cell to expandX it looks like ...
0
votes
1
answer
301
views
Libgdx pre-rendering Bitmap font to pixmap texture causes slow in-game rendering
Im using libgdx scene2d to render 2d actors. Some of these actor groups originally included scene2d Label actors for rendering static text. The Labels work fine but drawing ~20 of them on the screen ...
0
votes
1
answer
204
views
How to interact with inventory only and not the game
I have created an inventory in which you can select some objects that you can spawn. This is a button in a table in a inventory class. Spawning is done via left mouse button (just click on some ...
2
votes
1
answer
1k
views
Resize and move widgets when screen resized
I want to add buttons to my libgdx based game and have them be independent of the window's size, but when I resize the window, the buttons stretch and deform instead of being resized and/or moved.
...
0
votes
1
answer
172
views
LibGDX changing actors parents is resulting in unwanted (x,y) translation
I have a Rolodex of task item actors I want to drag to an agenda tablet. My drag and drop functionality is non-native, but came from modifying a book's implementation. The problem seems to be when I ...
1
vote
1
answer
352
views
(LibGDX) Set actor to fixed position on TiledMap
How can I set an actor to an absolute / fixed position on my TiledMap, such that it does not follow the camera when I pan around?
Currently my code looks like:
...
0
votes
1
answer
865
views
How to keep loading screen for minimum time?
Making my first game and stuck at keeping the loading screen visible for some time. It shows for an instance and disappears. By using loadasync the previous scene runs in the background? Do i have to ...
0
votes
1
answer
281
views
How do I make an actor move to the foreground temporarily in LibGDX scene2d?
I have an inventory UI which is a table in scene2d. Then the table had a bunch of Containers which are basically inventory slots. They have a transparant grey background color. Then in each container ...
0
votes
0
answers
51
views
How can I spawn and drag 2d object from a Canvas button?
I want to create and drag an object from canvas button to scene. How can I do this?
0
votes
1
answer
433
views
Why is this LIBGDX Action behavior THE EXACT OPPOSITE of what I expect?
Here is a code snippet of the relevant section in my render loop. My intention was to make the actor who was currently focused blinking, to indicate that it was the currently selected UI element. But ...
0
votes
1
answer
127
views
How do I properly link an OrthographicCamera to a OrthogonalTiledMapRenderer
how to properly link an OrthographicCamera to a OrthogonalTiledMapRenderer
How do I properly link an OrthographicCamera to a OrthogonalTiledMapRenderer? I have tiled map i'd like render and two ...
1
vote
1
answer
2k
views
Running a scene in the background
I've made 2 scenes where a room is another scene and the other is the outside of it. But whenever I do something in either scenes, and enter the other, it resets everything I did in the first one. I'm ...