Skip to main content

Questions tagged [scene2d]

Scene2D is the scene graph library that comes with LibGDX.

1 vote
0 answers
49 views

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 ...
eek's user avatar
  • 11
0 votes
0 answers
59 views

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.
p3tition's user avatar
0 votes
1 answer
76 views

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.
Nina Monti's user avatar
1 vote
0 answers
166 views

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 ...
The Shoe Shiner's user avatar
0 votes
1 answer
301 views

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 ...
The Shoe Shiner's user avatar
0 votes
1 answer
204 views

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 ...
mirzak's user avatar
  • 101
2 votes
1 answer
1k views

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. ...
happun's user avatar
  • 31
0 votes
1 answer
172 views

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 ...
RocketScienceGuy's user avatar
1 vote
1 answer
352 views

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: ...
Claire's user avatar
  • 11
0 votes
1 answer
865 views

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 ...
PhoenixGod's user avatar
0 votes
1 answer
281 views

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 ...
TJRC's user avatar
  • 131
0 votes
0 answers
51 views

I want to create and drag an object from canvas button to scene. How can I do this?
next age's user avatar
0 votes
1 answer
433 views

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 ...
cafeTechne's user avatar
0 votes
1 answer
127 views

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 ...
Macmanmatty's user avatar
1 vote
1 answer
2k views

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 ...
Nicole James Cresencio's user avatar

15 30 50 per page
1
2 3 4 5 6