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.
2
votes
2answers
296 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 ...
2
votes
2answers
295 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 ...
2
votes
1answer
51 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, ...
2
votes
1answer
273 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 ...
1
vote
1answer
488 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
1answer
21 views
How can I implement an asset update/download in a libgdx application?
I am building a game based on libGdx and I want to be able to check for and download updated assets at some point before the player starts playing. The game is being built for PC and for Android.
I ...
0
votes
1answer
17 views
Problem with Widget Event Reporting in Libgdx
So I'm trying to test an ImageButton on an Android device. I can get the button to appear on the screen, but when I press it nothing happens or appears on the log. Here is what I have in the Show() ...
0
votes
1answer
38 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 ...
0
votes
1answer
113 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
115 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 ...
0
votes
1answer
259 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
1answer
318 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 ...
0
votes
1answer
154 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
votes
1answer
47 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, ...
4
votes
0answers
250 views
Isometric - precise screen coordinates to isometric
I'm trying to translate mouse coords to precise isometric coords (I can already find the tile the mouse is over, but I want it to be more precise). I've tried several different methods but I seem to ...
2
votes
0answers
72 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 ...
2
votes
0answers
193 views
Error in destroying object in Box2D/LibGDX
I'm trying to delete an object when a collision happens. I have put the following code in the render method of the object so it would be outside of the physics calculations.
public void ...
2
votes
0answers
111 views
What files of libgdx can I ignore on git?
In libgdx auto created project, What files can I ignore on Git (or another revision control system)?
E.g Should I ignore:
*-android/.settings/
*-android/bin/
*-desktop/.settings/
*-desktop/bin/
...
2
votes
0answers
473 views
How do I generate mipmap .png and model .obj files for LibGDX?
I'm playing a bit with LibGDX (OpenGL ES 2.0 wrapper for Android).
I found some sample code which used prepared files to load models and mipmap textures for them, e.g., at ...
1
vote
0answers
56 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
vote
0answers
51 views
Another Question from the Image Efficiency for Memory Handling
At this topic, "Which image format is more memory-efficient: PNG, JPEG, or GIF?", one of the fellow Game Development community @Panda Pajama told about the complex concept about image memory handling ...
1
vote
0answers
732 views
TileMapRenderer in libGDX not drawing anything
So I followed the tutorial on the libGDX wiki to draw Tiled maps but it doesn't seem to render anything.
Here's how I setup my OrthographicCamera and load the map:
camera = new ...
1
vote
0answers
979 views
LibGdx drawing weird behaviour
I am finding strange behaviour while rendering TextureRegions in my game, only when pausing it. I am making a game for Android, in Java with LibGdx.
When I comment out the line "drawLevelPaused()" ...
1
vote
0answers
140 views
Blending effect on textures
Hi i am trying to build screen animation like flickering, interlace, color separation similar to old style malfunctioning Amiga screens. The intended effects are shown in this video. I am using ...
1
vote
0answers
75 views
Parenting Opengl with Groups in LibGDX
I am trying to make an object child of a Group, but this object has a draw method that calls opengl to draw in the screen.
Its class its this
public class OpenGLSquare extends Actor
{
private ...
0
votes
0answers
10 views
What is the better way of generating levels in android game using LibGDX
I downloaded the source code of metagun for android from
https://github.com/libgdx/libgdx/tree/master/demos/metagun/metagun-android
The game uses a png image to create the level. It uses the ...
0
votes
0answers
23 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
0answers
29 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
0answers
71 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 ...
0
votes
0answers
66 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.
0
votes
0answers
48 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 ...
0
votes
0answers
52 views
Loading .mtl file as in libgdx
I am trying to load .obj file and its respective .mtl(material or texture) file in libgdx. Is there any way of doing it. And i am using kibgdx 0.9.7 version.I am looking for any examples or any ...
0
votes
0answers
68 views
Texture not rendered correctly while zooming in LibGdx
I'm trying to make a game with libgdx which can run in multiple aspect ratio. The idea is to zoom in/zoom out the camera until the height of my screen same as the device height (my game is landscape). ...
0
votes
0answers
43 views
Freetype runs on Simulator but crash on device in IOS using Libgdx
I am using Libgdx to build my game for IOS. I followed the steps in http://www.badlogicgames.com/wordpress/?p=2819 to implement FreeType in my game.
My code is running on simulator but when i run it ...
0
votes
0answers
107 views
Black Screen on pressing back button in libgdx
In my game when i touch on advertisements and press back button to return on game the i am getting a black screen. I referred this link
http://badlogicgames.com/forum/viewtopic.php?f=11&t=7673
I ...
0
votes
0answers
260 views
Libgdx Particle Editor: Blank UI elements
How can I get Libgdx Particle Editor to run properly on my 32-bit Windows 7 machine? When I run it, the UI elements are blank like this:
0
votes
0answers
114 views
Fling and Spin an Object with Touch
For making a bottle to spin, I focused first on the touch dragging via input processor interface. It's a bit unresponsive since when I rotate clockwise or counter-clockwise as long as my finger ...
0
votes
0answers
286 views
Limited Screen Switching Count Memory Issue
When making my simple app for revisions to update the latest changes, I test it first between the device (Google Nexus 7) and desktop using Eclipse IDE. I made eleven screens for the game in terms of ...
0
votes
0answers
154 views
Android LibGDX Pixmap issue
I'm developing a game for Android using libGDX. I implemented "spotlight effect" for highlighting some scene elements in tutorial levels. I did use Pixmap class for implementing this. So I did ...
0
votes
0answers
300 views
Dynamic 2D (1D) map generation in libgdx
I'm currently brainstorming a game idea and I have stuck in one place. I'd like to dynamically generate endless map which looks pretty much like the one in game Hill Climb Racing (Android) or like ...
0
votes
0answers
173 views
LibGDX Touch Box2D Body
I am using LibGDX, however, instead of using the stage, actors, etc, I wanted to use straight Box2D that way I could port it easily (to iPhone) later. I have the character moving with the ...
0
votes
0answers
267 views
libGDX using Stage and Actor produces different camera angles on desktop and Android Phone
libGDX using Stage and Actor produces different camera angles on desktop and Android Phone.
Here are pictures demonstrating the problem: http://brandonyuh.minus.com/mFpdTSgN17VUq
On the desktop ...
0
votes
0answers
228 views
Making a Background Scrolling in Stacking Game
Hmmm...Is it a good idea to use a LibGDX parallax background for making a stacking game (i.e. PAPA STACKer Lite)? For example, I'm starting to use the blocks to drag-n-drop it. Next, when the next ...
0
votes
0answers
87 views
Cannot find ids?
Ok I am creating a game with libgdx i have 3 projects one for desktop/android/and main game
i have a avi i wish to play prior to the main game screen which is outlined in the main game section.
but it ...
0
votes
0answers
232 views
Objects lagging behind mouse movement in LibGdx
I asked this on stackoverflow but did not receive an answer:
In a very simple Libgdx game, which only consists of single image being dragged along with mouse, I notice that the object always lag ...
0
votes
0answers
358 views
Implementation AnalogOnScreen Controller
I want to know about how to implement analog on screen controller for the application. If possible also provide some guidance with example so It done my work easier.
0
votes
0answers
2k views
LibGDX Box2D Body and Sprite AND DebugRenderer out of sync
I am having a couple issues with Box2D bodies. I have a GameObject holding a Sprite and Body. I use a ShapeRenderer to draw an outline of the Body's and Sprite's bounding boxes. I also added a ...
0
votes
0answers
342 views
Problem with rotation in Box2D
I have my sprites and my bodies, and my problem is the following:
I rotate a sprite that doesn't have a body, but it has a projectile as a child, and that projectile has a body attached to it, and ...
-1
votes
0answers
43 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 ...


