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.
1
vote
0answers
17 views
Confusion with Libgdx UI
I've started with Libgdx and am currently stumbling about trying to understand how to set up the interface. I have generated the base projects in Eclipse ( < proj-name >,< proj-name >-android, ...
0
votes
0answers
17 views
Libgdx project port to Html5 using GWT - Assets not being found?
So I have a Libgdx project done, and have been trying to get it to port it to html5 for awhile using GWT. Thing is, none of the application's assets are being found because (I discovered just now), ...
0
votes
1answer
34 views
How do you implement Libgdx touchDragged?
I'm a beginner in Java and in Game Development too. I was following some tutorials, but now I'm stuck on implementing a touchDragged listener using libgdx,
Can anyone suggest how to drag the image ...
-1
votes
0answers
20 views
Skins for libGDX user interface [closed]
I am making a user interface in libGDX using the scene2d.ui portion of the library. To make a button, however, I need to have a skin. I was wondering if there is some sample premade skins available by ...
-1
votes
0answers
14 views
How to unbind a sprite in an updating vector? LIBGDX framework [closed]
How to unbind an updating vector to a sprite? I am using Libgdx framework. here is my code
public class VectorSample extends GDX_TEST implements InputProcessor {
Texture ball,bullet,guider;
...
-1
votes
1answer
58 views
Get distance between the edge of screen and a moving sprite
How to get the distance between the edge of the screen and a vector moving sprite? I want to get the distance between my moving sprite and the edge of the screen so that when my sprite touches the ...
10
votes
4answers
15k views
Where are all the tutorials for libGDX?
I've searched online for help and tutorials on LibGDX but I couldn't really find any, except and the wiki for asking questions on stackexchange. Besides the source (demos) and wiki, is there any other ...
0
votes
1answer
256 views
LibGDX Perspective Camera for 2D
I'm very new to LibGDX and I'm trying to use DecalBatch with PerspectiveCamera, simply to have z-coordinate for my sprites, as SpriteBatch does not offer that. However, I don't know how to calculate ...
0
votes
0answers
22 views
GWT compile fails for project which is using Libgdx-html backend
GWT compile for my libgdx-html game fails. The output from the console is as follows:
Compiling module com.appshank.spe.GwtDefinition
Validating units:
Ignored 1 unit with compilation errors ...
0
votes
1answer
313 views
Gesture Detector not firing
So I'm trying to create a input class that implements a InputHandler & GestureListener in order to support both Android & Desktop. The problem is that not all the methods are being called ...
2
votes
2answers
294 views
How do I get the touch event on a body in Box2d(Java)
I have various bodies rotated at some angle with the help of Box2d in libGDX. What I want is to destroy the body when I click on it, but the problem is that I am not able to get the area definition of ...
8
votes
2answers
1k views
Play videos with LibGDX
Is there a way to play videos with LibGDX?
I want to put a video as my splash screen in Android, but I dont want to use the Android SDK, because I am using LibGDX and I am almost finished :/
1
vote
2answers
68 views
LibGDX GestureDetector touchUp
I am using to GestureDetector to detect drag gesture and determine vector based on position my finger first touched the screen and position when my finger left the screen. I already know that I can ...
-1
votes
1answer
45 views
Creating metadata/pack files for an existing sprite sheet
I've just bought Oryx's tileset pack: http://oryxdesignlab.com/sprites/ultimate-roguelike-tileset
I use LibGDX (flixel-gdx to be precise). My question is, given this premade sprite sheet format, ...
0
votes
1answer
58 views
Drawing in 3D with LibGDX
Is there any way to simply draw in 3D, just like you would draw with ShapeRenderer or SpriteBatch? All I want is to draw circles that are in x.y.z coordinates, so some circles are far away from view ...
41
votes
6answers
4k views
Which image format is more memory-efficient: PNG, JPEG, or GIF?
Which image format is more efficient to save memory? PNG, JPEG, or GIF?
0
votes
1answer
108 views
Libgdx import bin/xml/json from physics editor
I'm using Libgdx. I did a simple json file in Physics Body Editor and I don't have any idea how could I import it into my physic world in libgdx.
Any idea will be appreciated.
P.S: Sorry if there ...
0
votes
1answer
112 views
Pick and Drop the Ball Testing Without Replicating the Physics Frame
I am making a program that pick, drag, and drop the ball. In real life, once you pick the ball and drop it, whenever the available object is (what you see is what you get) will only be picked and ...
-1
votes
0answers
40 views
LIBGDX usage for Facebook Games/Chrome Web Store [closed]
I want to develop a game and make available via Facebook/Chrome Web Store. Since Libgdx is Java-based, will this work for a Facebook game or Chrome web store game? Information on the support of ...
2
votes
1answer
271 views
Change the scale-policy of OpenGL ES in Android?
I currently develop a game for Android in OpenGL ES 1.0, use libgdx library. I target the 720x480 screen size.
For example, I design only one arts pack for 720x480. And what will happen in Android ...
0
votes
1answer
67 views
LibGdx : Animations not working on custom actor
I have this code for rendering a sprite, retrieved from a TextureAtlas
public class SpriteActor extends Actor {
private Sprite sprite;
public SpriteActor(TextureAtlas atlas, String spriteName) {
...
2
votes
2answers
292 views
How to detect a touch on transparent area of an image in a (libgdx) stage?
Can some one please help to detect a touch on an image which I am using as an actor in a stage. The image is actually a long diagnol brush which has plenty of transparent area. The problem is when I ...
4
votes
4answers
2k views
How do I make an on-screen HUD in libgdx?
I'm new to libgdx, and I am finding I am getting stumped by the simplest of things. It seems to want me to do things a specific way, but the documentation won't tell me what that is.
I want to make ...
-3
votes
0answers
49 views
How to animate the Tilemap object in Libgdx? [closed]
I am facing problem to animate or move the object(Cell) of Tilemap??? Is there any solution for this???
0
votes
1answer
153 views
Wavefront mesh: determine which face a point belongs to?
I have a 3D mesh Wavefront .obj file.
Is there any algorithm that takes an arbitrary point coordinates as input and determines which face of the mesh that point belongs to ??
The mesh is rendered on ...
1
vote
0answers
54 views
sharing preferences between two apps on android with libgdx
I am making an android game with both a demo version and a paid version. I want users who decide to buy the paid version to continue from where they left off, with all their old data and settings.
...
-1
votes
0answers
40 views
LIBGDX Decal touch events
I would like to know how you can get touch events on decals? I have my perspective camera working well with the Gdx.input.setInputProcessor(controller3d);, I would like to be able to pass the ...
1
vote
1answer
74 views
LibGDX Cross Platform Networking
Backstory:
I've been developing a game with LibGDX for the past two years, and I've seen it refactored more times than I remember.
I jumped on the iOS iKVM port as soon as it was released.
But I've ...
1
vote
1answer
55 views
How to attach one sprite to another in LibGDX?
I want to attach one sprite to another so that it is always located at the 'bottom' of the other sprite, regardless of how the main sprite is rotated.
0
votes
1answer
119 views
Deploying GWT application / LibGDX and TextureAtlas problem
I encountered with a little problem. After GWT (and LibGDX) deployment I got an error:
GwtApplication: exception: Couldn't load image '/images/objects.png',
file does not exist Couldn't load ...
2
votes
0answers
70 views
Libgdx sprite rotation (image quality)
This one is probably really simple but I didn't find a solution.
I'm trying to create a widget (speedometer) with libgdx.
For the arrows I'm using the setRotation() function.
But when the image is ...
1
vote
1answer
46 views
LibGdx: How do I combine 2 GestureListener objects from 2 seperate classes into 1 GestureDetector
I'm trying to make 2 separate classes, 1 a VirtualJoystick class and 1 a VirtualButton class. I want to implement a GestureListener class in each, it just seems like good code to do so, but when I go ...
1
vote
1answer
455 views
When to use ShapeRenderer & SpriteBatch in libGdx?
As a beginner(in GdxLib+Android), i found that for rendering particular screen, we can render that using both ways then when to use specific ones?
&
What is the best option for Updating the ...
0
votes
2answers
86 views
Vector2 always starts from origin
I am trying to create Vector2 which starts from the players sprite and points towards other point. And I need its starting point to move along with player sprite. But however whatever I do all my ...
0
votes
2answers
1k views
Handle Input Processor in Device Back Button and Button as Actor
How to handle a event for both key as well as actor added in the screen? My problem is that at a time only one input processor is available either for button or device back button. How can I set input ...
-2
votes
2answers
136 views
touchDragged how to move a sprite [closed]
I have 1 simple sprite on the screen and I'd like to move it with the finger. (not necessarily by putting the finger on it, just anywhere on the screen)
I built the project using gdx-setup-ui.jar ...
1
vote
3answers
2k views
How do I save files with libgdx so that users can't read them?
Writing my game in libgdx, I arrived at the point when I need to save the player stats and the info of the levels. However, in libgdx it's not allowed to write the file inside folder of the ...
0
votes
0answers
69 views
fire multiple events in InputListener
I have two Actors on my stage in libgdx and and both have a InputListener. I override the touchDown method and it works fine. My Problem is that when I press my Actor Z and a second later Actor Y only ...
3
votes
2answers
176 views
Creating stable tentacle structures
I am using verlet integration to simulate some tentacles. So far it works great and I am satisfied with how it looks in general. Here is how a tentacle is built:
The very stiff sticks are colored ...
0
votes
1answer
57 views
Stereo music playing in mono in libGDX
I'm trying to get some music to play back in stereo in libGDX, but it seems to be blending the left and right channels so much that it sounds like it was mono.
To test this out I made a sound file ...
0
votes
0answers
65 views
Twine Engine with Libgdx
I am new at game development and want to know how can I implement twine engine in 2D games built in Libgdx ?Any tutorial or sample code can help me.
1
vote
1answer
172 views
Precise Touch Screen Dragging Issue: Trouble Aligning with the Finger due to Different Screen Resolution
Please, I need your help. I'm trying to make a game that will drag-n-drop a sprite/image while my finger follows precisely with the image without being offset. When I'm trying on a 900x1280 (in X ...
1
vote
5answers
4k views
What is the proper way to remove a box2d body from the world in libgdx?
I'm wondering how to remove the body from the world, because I found an error when I tried.
I found following error.
java:
...
1
vote
5answers
540 views
Errors happen when using World.destroyBody( Body body )
on Android application using libgdx, when I use World.destroyBody( Body body ) method, once in a while the application suddenly shuts down.
Is there some setting I need to do with body collision or ...
0
votes
2answers
138 views
How to I rotate a triangle by dragging the mouse in libGDX?
More specifically, I have rotation working in a way I don't like as follows:
//Draw the triangle using this draw method
//batch.draw(texture, x, y, ...
0
votes
1answer
156 views
perspective camera with libgdx
I am trying to setup a viewport using perspective camera. I am trying to render a scene like this
I read an official blog post about the cameras and found a few tests within gdx test suits. ...
0
votes
0answers
46 views
Get the position of a tile when using an IsometricTiledMapRenderer
I am using an IsometricTiledMap, and would like to use a stage to display my actors on it.
How can I obtain a position in the Stage context from the index of a tile ?
Or maybe is there a way to setup ...
2
votes
1answer
88 views
Camera not strafing (GLSL)
I use this code in my GLSL vertex shader, where v_position is the vertex position:
gl_Position = v_position * u_camera;
and set u_camera as follows:
meshShader.setUniformMatrix("u_camera",
...
0
votes
1answer
61 views
Dependency setup between libGDX projects in Eclipse IDE
For my game I'd like to create another project that extends the functionality of libGDX and since it will be an independent project it could be easily reusable. How can I achieve this in Eclipse IDE? ...
3
votes
2answers
108 views
How To Correctly Extend the Sprite Class in LibGDX
I am currently pursuing game development as a hobby, and have run into what seems to be a conflict in my mind regarding how to properly (using best practices) extend the Sprite class in LibGDX (or for ...


