libgdx box2d car wheel circle collision with ground
I’m creating game similar to hill climb racing. I have created car (which is basically polygon with two circles) and ground generated by sinus. Now here is the problem: when my car try to climb in hill...
View ArticleLibGDX: creating actor conformed by other actors
I am making my custom actor class, made up by 3 actors(oneProgressBar, one Label and one TextButton), because I will be using this many times, so it’s not a good idea to create 3 of that actors when I...
View ArticleSplitting spritesheets and making the background transparent
Is there a quick way of splitting and removing the background of a spritesheet that’s taken from the web? I’m fine with downloading software, using a website or making use of any commands that...
View ArticlelibGDX text doesn't appear in TextField
A game I’m working on has libgdx’s TextField. They work fine in every instance I’ve used them, however on a play tester’s phone he says no typed text appears in the box until enter or space is pressed....
View ArticleLibGDX: Is there any way to check if space between 2 bodies is free?
I know how to calculate the distance between 2 bodies in my game using Math.hypot(x,y); but I need to know if between those bodies the space is free, I mean, without any body.
View ArticleHow can I set a Steam achievement in Steam via LibGDX or native Java?
Is it possible to set or ‘unlock’ a Steam achievement via LibGDX or with a native Java solution? If so, how it this possible. Furthermore, what would be a good implementation for ‘saving’ achieved...
View ArticleHow to get the position in an actor inside a table with LIBGDX?
Well the title says it all, I want to get the position of an actor inside a table Button button = new Button(bs); table.add(button).width(50).height(50); table.top().center(); By using...
View ArticleGame Server Mechanic [closed]
Hey guys Im currently developing a little rpg duengon crawler. I really want to implement a local and an online multiplayer function, i know how servers are working and how to make them using sockets...
View ArticleDoes scene2d(libGDX) know when an image is drawn out of the screen?
I mean, I want to make a tiled map using scene2d, so in the render method of my game… @Override public void render(float delta) { Gdx.gl.glClearColor(0.5f, 0.5f, 0.5f, 1f);...
View ArticleConvert transform from world to local space
I have a hierarchical node system. Given a world space transform, I need to obtain the transform for a specific node in local space. My Node class has the following method. public void...
View ArticleHow to update projectile trajectory point?
I am a new game developer, I am making a game, but I have a problem, I don’t know how I can update my trajectory point in OnDraw method. Could anyone please help me? Thank you! Here is my code:...
View Articlelibgdx collision on moving Rectangle with other Rectangle
I’m making a soccer game where you touch the screen and the player shoot the ball to the touched position with the objective of scoring goals when it hits the goal. The player is just a Sprite and the...
View ArticleRAM usage unusually high, but CPU usage relatively low
I’ve created a relatively simple game using libgdx, but the RAM usage when I start up the game on my Android device is roughly 600-700 mb, but the CPU usage is only about ~0.05%. I’ve downloaded a game...
View ArticleActions.fadeOut doesn't work when called on stage root
I’m trying to fade out my screen when a button is pressed, but the following code doesn’t work: public void switchScreen(final Game game, final Screen newScreen){ stage.getRoot().getColor().a = 1;...
View Article