A game library which enables cross-platform game development in Java, with support for Android development and desktop development. It makes use of OpenGL for portability.
0
votes
0answers
9 views
LibGDX with GWT ignore source file changes
I'm using LibGDX with GWT to create a web version of an app that runs without problems on the desktop, Android and iOS. However, the HTML version of the app had a few problems with constructs ...
0
votes
0answers
7 views
libGDX TextureRegion drawing weird when scaled
Having a weird issue.
I have a Texture with four frames of a sprite Animation. Each frame is loaded as a TextureRegion.
Most of the time the Animation play without any issues, but occasionally it ...
0
votes
0answers
19 views
Libgdx Box2D and Screen Viewport Scaling
I am currently having problems getting an easy to manage system of scaling my units for use with box2D. Normally I would create virtual units to go along with me viewport and camera but since I am ...
0
votes
0answers
20 views
World editor/level editor which works with libgdx? [on hold]
Anybody know any good 3d world editor to use with libGDX which can export in json or XML, it would be nice if it allows custom properties for objects...
0
votes
1answer
38 views
Libgdx Hud with two stages
I have an app that's currently working with a single stage but i need to add a side display/section as a HUD, with scores/lives etc on it, so that the HUD is on the left, and the main hand screen on ...
0
votes
0answers
20 views
Is there a way to rotate an Ellipse in libGDX for collision detection purposes?
I'm trying to avoid having multiple overlapping Circles for a UFO-shaped sprite.
Two Ellipse objects will perfectly cover the shape of my UFO, but I want to tilt/rotate the UFO when flying left and ...
0
votes
0answers
19 views
How will i know if the Body is facing a the target angle [duplicate]
I want to know if the body of the car is facing the line on the picture
-1
votes
0answers
11 views
Need suggestions about dealing with different screen sizes on android [duplicate]
I always wandered how can one make a game for different screen sizes.
I'm guessing that you can use different sized images, but there are large amount of screen resolutions and making pictures for all ...
0
votes
1answer
14 views
Libgdx Sprite is not drawn when generated inside another class
I´ve built a gameloop where I generate new items depending on the elapsed time and want to place them somewhere on the screen. I use some randomness for the color and coordinates. For better design I ...
0
votes
0answers
10 views
libGDX SpriteBatch.draw() origin not working as expected
I'm having a weird issue with SpriteBatch.draw(). I'm using the Ashley Super Jumper demo (https://github.com/siondream/ashley-superjumper) as the basis for my code. Here's the render queue:
...
0
votes
1answer
19 views
Clearing a libGDX pixmap
Is there a way to clear a libGDX Pixmap? Or is the only way to dispose it and create a brand new Pixmap?
0
votes
0answers
23 views
Bullet Collision Shape doesn't wrap Model correctly
i got an object called human and an object called platform.
I simply let the human fall down on the platform with a constant speed. No acceleration!
The problem is that my collision shapes for both ...
0
votes
0answers
25 views
Can libGDX render this ditto? [on hold]
I played with libGDX for a while (only the 2d part),made a small game, but now I want to look at the 3d side of libGDX, so I'm wondering can libGDX render this blender scene ditto? Specifically the ...
1
vote
1answer
35 views
Implimenting BADLAND like Body Movement in Box2d
I am trying to make a body (character in my game) move and behave in the same way as the character in the BADLAND Game with regards to rotation.
The character does not have fixed rotation and behaves ...
0
votes
1answer
20 views
Valid instances not drawn
i have a problem with my code, my valid instances aren't drawn.
I'm just at the beginning so i will post the whole code(which sounds bigger than it is)..just a few lines
public class MyGame ...
0
votes
1answer
17 views
How do I draw an object that I always want to appear in the same place on screen on a scrolling orthographic camera using lib gdx?
So I want to make an endless scroller game and the orthographinc camera is scrolling downward so i want the character to stay with the camera. I'm not sure how to aproach this i've been looking a lot ...
0
votes
0answers
12 views
invisible actor at group (libgdx)
I add to HorizontalGroup several actors: 1, 2, 3. I want to set invisible 2nd actor, and it doesn't take any space (seems in Android View.GONE - ...
0
votes
0answers
28 views
how to detect collision with libgdx and tiledmap
As you see , it's a picture from my game map , i have to create a 2d rpg game when a character can do many things.
Currently i'm looking for a solution to handle collision between the character and ...
0
votes
1answer
32 views
libgdx - Box2d debug draw not correct
I have a problem where the bodies in my debug draw does not draw correctly, take a look:
As you can see, there is some space between the dynamic body and the ground. I have checked the contact ...
0
votes
0answers
29 views
Drag and Drop IDE for LibGDX, can anyone suggest? [closed]
I really want to learn libGDX gaming. Open source, freeware and big community tempts me to learn it. Moreover, It dominates most of the games in Android and iOS (I hope in this too).
But I am not a ...
0
votes
0answers
7 views
Loading flipped atlas in libgdx using assetmanager
i'm trying to load a TextureAtlas with the AssetManager but i can't find a way to flip it upside/down.
Without using the asset manager, this is possible by using the standard constructor of the ...
0
votes
0answers
20 views
Libgdx triangulation messing up triangles
I'm trying to triangulate a convex polygon.
On the left are the triangulated polygons, while on the right is the convex polygon without triangulation. (both are wrong) but the one on the right is ...
0
votes
1answer
44 views
Smooth transitions between 2d animations
I am writing a 2d game (in libGDX, but I think that doesn't matter too much). In that game I want to have smooth transitions between animations. For example, let's think of a guy walking around. Now ...
0
votes
0answers
10 views
Libgdx ParticleEffect world position
I want the particle effect to follow an object in the world, but since the particleEffect uses viewport positioning the desired effect is lost as soon as the camera starts following the object.
the ...
0
votes
0answers
20 views
how to create a simple dialog pop up on back button press in libgdx game
Can anybody guide me how to create a simple dialog pop up on back button press in LIBGDX game.
I tried it by reading Dialog APi, but nothing happens becuase of my lack of knowledge. So kindly point ...
0
votes
0answers
14 views
Libgdx not finding image [closed]
I created a new eclipse project in a new folder that has the same code (different project) as the previous one. I had to import and change a few things, but it can't find any files for some reason.
...
0
votes
1answer
55 views
Trying to add a feature to my (basic) level parsing algorithm - not sure how to (JAVA)
Right now this method goes through a list of GameObjects (e.g. JetPack, Platform) with their respective x and y positions in a text file called level1.txt:
platform 840 280
platform 1130 280
coin ...
0
votes
1answer
29 views
LibGdx Scalling sprites on Android
I have a sprite that is a few buttons but need them in the center of the screen for all android devices. I tried setting it's location to the center of the screen by dividing the orthogonal camera by ...
0
votes
0answers
19 views
AL lib: (EE) alc_cleanup: 1 device not closed [closed]
Im using libgdx and create the bullets with box2d
When i shoot a few bullets than my application crash and this error message appears.(Is in the pastebin link)
I'm really helpless why this error ...
0
votes
1answer
26 views
Tiled PolygonObjects rendering wrong in libgdx
this is how I render the polygons in Tiled
this is how they get rendered in libgdx. Notice the top part of the triangles is straight instead of being hollow.
here is the code I use to convert the ...
0
votes
0answers
6 views
How to specify core project path in Libgdx Project Generator?
I am following a tutorial on making a flappy bird with the Libgdx framework.
-http://www.kilobolt.com/day-11-supporting-iosandroid--splashscreen-menus-and-tweening.html
I am currently on the step of ...
0
votes
0answers
38 views
implement paper folding (origami) on android
i'm working on a game, i have been working with game engines like UDK and Unity for many years, now I come into Android and eclipse,
i have a question and im really confused, lets describe.
i want to ...
0
votes
0answers
33 views
Libgdx box2d crashing
im making a game in libgdx which i having a bunch of circle bodies floating around in space and when the player's body crashes into another body, that body deletes and creates two smaller bodies ...
0
votes
2answers
51 views
Why does this simple if-statement that checks my main characters state never get called (Java/LibGDX)?
Been working on this for a while - basically I want my player to perform a front flip when he jumps (screen tap -> player jumps). I wrote the animation class Animator (extends Player implements ...
0
votes
1answer
66 views
Draw a line/curve for the path an object has taken
Hello I am making a game in libgdx. I want to draw a line/curve of the path a object have taken.
First a thought I could save all positions of the objects each iteration and draw line between them ...
0
votes
1answer
74 views
Java, Crashing with a Shader on Intel HD Graphics
I just got a new computer (Acer Aspire ES1-311) which has an integrated Intel HD Graphics card, and I noticed that this fisheye shader crashes my game (LibGDX game, VM Crash):
varying vec2 ...
0
votes
2answers
37 views
Simple LibGDX Pong game drag player instead of getting x position
I got a working pong game in LibGDX but when I touch the screen the player x automaticly jumps to the coordinates I touched. I wan't my game to detect I touched and then move the player to the ...
0
votes
2answers
35 views
how to fix the character flip when using orthographic camer libgdx
i used orthographic camera to follow the character(player) but the problem that is my character is flipped there is no tutorials on how to fix this please help as fast as possible
here is my create ...
1
vote
1answer
56 views
Why does this impulse not affect the body?
I'm just getting started with Box2d and I'm trying to apply an impulse to a circle but nothing really happens.
First I define ball:
BodyDef bodyDef = new BodyDef();
bodyDef.type = ...
0
votes
0answers
13 views
How to experiment for the value of gravity in Libgdx? [duplicate]
I am following a guide on how to play a flappy bird clone in the LibGdx framework.
-http://www.kilobolt.com/day-5-the-flight-of-the-dead---adding-the-bird.html
I am currently on the part where the ...
0
votes
1answer
39 views
Scene2d Stage Actor setup issues
I am creating a game using libgdx.
In the same each level has a class. I have stage as a member variable of the class. To this stage, I add actors.
Inside the levels class, I have attaced the input ...
0
votes
2answers
65 views
How do I derive an appropriate acceleration value for my game?
I am creating a Flappy Bird clone from this tutorial.
I have a question about acceleration in libgdx. The author assigned the bird a constant acceleration vector in the constructor of the bird
...
2
votes
1answer
61 views
How to save file in assets so it can be properly loaded in Android Studio?
I am following a guide on creating a replica of Flappy Bird. - http://www.kilobolt.com/day-6-adding-graphics---welcome-to-the-necropolis.html
The step I am having trouble is loading the texture from ...
1
vote
2answers
113 views
How do I limit the rotation speed of a mouse-following object?
I am trying to make a 2D top-down game where player controls a spaceship. The spaceship (a rocket) is just a sprite following the mouse cursor with a fixed speed and is always pointing toward the ...
-1
votes
0answers
34 views
Libgdx getting random position on screen is null? [on hold]
So, I want to get the random position on my screen to spawn enemies on them. but here's problem.
int randX = r.nextInt(screenWidth);
int randY = r.nextInt(screenHeight);
Apparently these are null, ...
0
votes
0answers
15 views
There is any nosql database for libgdx? [duplicate]
my question is simple. There is any nosql database compatible with libgdx? , I have googled it but I didnt find anything. I only found that libgdx iplements sqlite.
0
votes
0answers
76 views
Create a Minimap of a Tiled Map with LIBGDX
thanks for stopping by to help!
Having a little trouble with OrthogonalTiledMapRenderer. I've got a Tiled map that is 250x250 tiles, each 16x16 pixels.
Trying to use a separate camera to draw a ...
0
votes
1answer
77 views
Multiplying by delta not giving smooth movement
I started working on my first proper game but reached a problem straight away. In short I have a game that runs most of the time at 60 fps. ( I am using Libgdx a popular Java framework) but my game ...
0
votes
1answer
40 views
How can I test if the mouse draw on the active tiles?
I want to draw some sprites in a tiledmap where the tiles are active.
I want to draw with the mouse, so how could I compare the position of the mouse, the sprite position and the position of active ...
0
votes
0answers
9 views
Cut parts off a nine patch LibGDX
As you can see in the image i would like to cut off a few of the boxes when rendering teh nine- patch:
Bits to cut off:
Are there any LibGDX methods to cut off those bits?