LibGDX: 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