Box2D Fixture doesn’t get the same category and mask bits of its FixtureDef

This is quite bizarre in my opinion. I create fixtures based on a fixtureDef. I use the libGDX version of Box2D. This is my code: System.out.println(“category bits of fixtureDef: ” + …

LIBGdx – I get gray pixels in a sprite when saving as PNG

I’ve been trying to scale down a sprite and save it to the android local store for later use, but everything I’ve tried always results in a grey edge around the sprite. Sprites As you can see, the …

libGDX game complied to superDev on localhost:8080 only shows one button

I am unable to get my libGDX game in the browser using gradlew html:superDev After executing the command gradlew html:superDev on a terminal inside my IDE (Inteliji), I get the response: The code …

OpenGL Alpha values having no effect in shader

I have a simple shader to make scanlines in my 2d game which works fine and is as follows: #ifdef GL_ES precision mediump float; #endif varying vec4 v_color; varying vec2 v_texCoords; uniform …

How to properly use open gl calls with libGDX

I am trying to render a terrain using my own shader and by using low level open gl methods. But other parts of the game use SpriteBatch and other GDXlib render classes. My openGL code for terrain …

Java – Libgdx set the cursor to the hand pointer

I have been doing some research on libgdx and can’t find anything relating to this, you can set the pointer image but that isn’t what I’m wanting, I tried the set cursor with j frame and stuff but it …

Rotate image continuously

I want to rotate the ring image constantly in anticlockwise direction here is my code public class SpriteSheet extends ApplicationAdapter { Stage stage; @Override public void create () { …

How to see if a texture is touched in libgdx?

pretty much i want my texture to move to a random position on the screen when its touched and when its missed i want to system.out(“missed”). I cant figure out how to see if its touched. …