Skip to main content

Questions tagged [libgdx]

'libGDX' is an open-source cross-platform Java game development framework based on OpenGL (ES) that works on Windows, Linux, Mac OS X, Android, iOS and WebGL enabled browsers.

0 votes
0 answers
29 views

Gif isn't playing, none errors

My gif file isn't playing, but there is no errors in console. Render method: @Override public void render(float delta) { elapsed += Gdx.graphics.getDeltaTime(); Gdx.gl.glClearColor(0, 0, 0, 1); ...
Prostoblodi's user avatar
1 vote
1 answer
46 views

java.lang.IllegalArgumentException: capacity < 0: (-1611268096 < 0)

Error: java.lang.IllegalArgumentException: capacity < 0: (-1611268096 < 0) at java.base/java.nio.Buffer.createCapacityException(Buffer.java:279) at java.base/java.nio.Buffer.<init>...
Prostoblodi's user avatar
1 vote
1 answer
24 views

How to reposition a window in LibGDX after it is resized with setWindowedMode() method

On an MS/Windows platform, when the user changes the window size of my app I capture it in the resize() method. I want to preserve the aspect ratio of the window, so if necessary, I'll alter its size ...
Mike's user avatar
  • 113
-2 votes
1 answer
63 views

LWJGL glfwPollEvents blocks libGDX main loop on macOS

While my Lwjgl3Application-based game runs fine on windows and various linux distros, I only get a black screen on macOS. Looks like the call to glfwPollEvents does not return at all which blocks the ...
Sebastian's user avatar
  • 5,967
0 votes
0 answers
12 views

libgdx ShapeRenderer on xz plain

I have set of point on xz-plane and need to draw polygon, probably using ShapeRenderer. But it is intended for xy-plane, and, using my set of points, render polygon in perpendicular to expected ...
Alexey's user avatar
  • 3,182
0 votes
0 answers
19 views

Multiplexer bug (CameralnputController + Touchpad)

// the touchpad multiplexer.addProcessor(createGameUiDev.getStage()); // Adds camera controls to the multiplexer multiplexer.addProcessor(camController); ...
Calvin Guirand's user avatar
0 votes
1 answer
47 views

build.gradle unable to find tasks for DesktopLauncher.main

So I've been learning Java and thought I'd try and follow along a YouTube tutorial to make flappy bird using libGDX and Android Studio. I'm on part 9 currently and I think I have everything correct so ...
Jake McDaniel's user avatar
-2 votes
1 answer
22 views

How to match world units to mouse inputs in LibGDX?

I am trying to create a UI for a game that I'm making in LibGDX. However, when I use world units, the mouse input does not correspond correctly and is off depending on the screen size. How can I make ...
Mehrbod Mehrabi's user avatar
0 votes
1 answer
81 views

How do I fix the error "The project could not be built due to "core does not exist""

I am using visual studios with jdk 17 and libgdx implementation. I ran into this issue awhile ago and it is pretty annoying as I can run my code fine with no issues, I just cannot use autofill or see ...
Jack Lander's user avatar
1 vote
1 answer
42 views

How to properly check where a tile is on a tiled implementation in libgdx

I am using libgdx to create a super mario clone and I have created a tilemap in tiled. I have not used libgdx before so I am not very sure how it all works, but when I added the tilemap to my screen ...
Jack Lander's user avatar
1 vote
1 answer
38 views

Why is setRotation() not working in my Sprite in LibGDX?

Although the code seems right, for some reason in the game the sprite doesnt visibly rotate towards the cursor, it doesnt rotate at all Texture playerTexture; Sprite playerSprite; Vector3 playerPos = ...
Jeipi's user avatar
  • 11
0 votes
0 answers
25 views

How can i allow players to add tiles on a tiled map (for my libGDX game project in JAVA)?

This is my first post on StackOverflow, lol, and I am making a tiled map game in JAVA using libGDX. i've already made the map using TiledMap software. Now i need to give players the ability to add ...
Abdullah Asim's user avatar
1 vote
1 answer
37 views

How to turn off collision impulse box2D LibGDX

I have an enemy and a bullet objects, when bullet hits an enemy it disappears but is also cause some impulse to an emeny model. This impulse is small but noticeable. I tried to set enemy velocity to ...
Happy Trash Bin's user avatar
0 votes
1 answer
51 views

How to deal damage only on (some) frame(s) on attack?

I'm making a game by LibGdx, my character can attack and have animation for it, but I want that the attack only deal damage to enemy only in specific frame of animation, not just in start/end of the ...
Nhật Thành's user avatar
0 votes
0 answers
33 views

Why is the tween transition immediate instead of being progressive?

I am doing a mini-project with libGDX and implementing the universal-tween-engine library. The problem is that when I want to make the transition of the opacity from 0 to 1 of a Sprite, the transition ...
JoseJuan's user avatar

15 30 50 per page
1
2 3 4 5
845