Questions tagged [libgdx]

LibGDX is a cross-platform Java game development framework based on OpenGL (ES) that works on Windows, Linux, Mac OS X, Android, iOS and your WebGL enabled browser.

Filter by
Sorted by
Tagged with
-1
votes
1answer
56 views

Extracting cell center and corner points from rasterized Voronoi diagram

I currently have this code which I copied from Rosetta code: ...
1
vote
1answer
29 views

ParticleEffect using TextureAtlas in libGDX

I am using ParticleEffect with a texture stored inside TextureAtlas. The code below shows how I load a particle: ...
0
votes
2answers
68 views

Shooting from Gun in LibGDX

I'm trying to shoot a bullet from the tip of a gun. This gun is a Sprite object and it is constantly being rotated to point towards the mouse. The issue is that the point to shoot the bullet from is ...
1
vote
1answer
38 views

How to dim the device backlight using libGDX?

I have an idea for a very minimalistic game. To fit in with this theme. I want no explicit messages or tutorials etc. I want to experiment with ways to very gently, implicitly prompt the player to ...
0
votes
1answer
33 views

Libgdx changing animation during runtime?

I've made an animation class that creates an animation for a player. However, I'm wondering how I can change the animation depending on where the player is currently moving? Heres my animation class: <...
0
votes
1answer
68 views

How to interact with inventory only and not the game

I have created an inventory in which you can select some objects that you can spawn. This is a button in a table in a inventory class. Spawning is done via left mouse button (just click on some ...
0
votes
0answers
26 views

LibGDX latest, Ubuntu 20.04, OpenJDK 11, Gradle 6.7.1 - Unsupported class file major version 60

LibGDX latest, Ubuntu 20.04, OpenJDK 11, Gradle 6.7.1 Using above systems and first got below error - ...
2
votes
1answer
31 views

LIBGDX ShaderProgram not passing uniforms

I'm trying to implement a Shader that turns any RGB values below 190 into black. LIBGDX code: ...
1
vote
1answer
33 views

Resize and move widgets when screen resized

I want to add buttons to my libgdx based game and have them be independent of the window's size, but when I resize the window, the buttons stretch and deform instead of being resized and/or moved. ...
1
vote
1answer
101 views

Should delta be applied to every change per frame ? (e.g. acceleration, deceleration, jump, etc.?)

I have written a game based on another game's original physics. I have all the constants the original game used in the Sega Megadrive. For example: ...
0
votes
0answers
41 views

LibGDX: How to grow button height downwards in Table?

For my layout, I have a Table in which I add TextButtons with a height of 20. I also set the height of the table to 30. When I now increase the height of one button to 30, the height grows not ...
0
votes
0answers
22 views

Setting a TiledMapTiledLayer equal to another TiledMapTileLayer?

I am attempting to create a reset button in a simple isometric libgdx puzzle game I am making utilizing libgdx. I am using the TiledMap object in order to render my map. Within my code, I edit some ...
0
votes
0answers
42 views

Focus problem when switching to fullscreen mode in libgdx

When I run my app in fullscreen mode on a desktop, it starts to behave strangely. The window is created but its content is not shown. I can switch between other open windows using ...
-1
votes
1answer
83 views

How to enable anti-aliasing when camera zoom in libgdx

I develop a game where I draw some textures on the screen and want to zoom in and out the scene. I am using OrthographicCamera and when I zoom in, the textures ...
1
vote
0answers
15 views

Libgdx tiles get overlapped on render

I'm trying to create a Tilemap with 64x64 textures which follows this configuration. ...
0
votes
0answers
50 views

LibGDX getting model roll

I'm working on a 3d game in LibGDX, got help on here with my model rotation. Worked great. But now I'm dealing with the model's roll, and it's not behaving as expected. It's controlled by: ...
0
votes
1answer
46 views

LibGDX setToRotation canceling out position

I'm working on a 3d project in Libgdx. I've got a camera flying around in 3d space, being controlled with touch. Works great, moves forward and backward, strafes, full 360 look around with no gimbal ...
0
votes
1answer
42 views

LibGDX - Actors added to a stage from a network thread are not drawn

I have an application with several Screen and Actor. On my main screen, the actors added to the stage during creation are ...
1
vote
0answers
295 views

OpenGL Compute Shader vs Fragment Shader device support

I have a game with massively parallelizable logic, which I intend to write calculate on the GPU (Java/LibGDX). I am planning to implement a logic for it through a fragment shader, instead of a compute ...
0
votes
1answer
33 views

LibGDX - Rendering problem when in a Timer.Task

I have a "console" window in-game where I log messages. When starting up, the game checks for updates by way of a Timer.Task. Any messages I try to log in ...
0
votes
1answer
34 views

How to make the automatic movement of an actor and control that it does not go off the screen?

I have an actor in a class who then I put him in the main scene, but I want the actor to move randomly, that is, now he moves to the right, then down ... but controlling that he does not leave the ...
0
votes
0answers
30 views

LibGDX - Render texture background twisted

I am developing a 2D survival game. In these days, without make some features, I am fixing some bug. There is one which I got stuck on: my map has a background made with grass, earth, desert, water ...
0
votes
0answers
50 views

LibGDX Shader that converts sprite to single colour with blurred edges

I made a shader which turns all the colours of the texture to black but I also want it to be blurred at the edges where the opaque sprite turns transparent. Original texture with desired output. <...
0
votes
1answer
40 views

Google Play Game Services Detecting Top 3 Players

I used Google Play Services Leaderboard in my Libgdx game. This is what I want to do; I would like to give awards to the best 3 players in this table. How can I help you? It automatically connects to ...
0
votes
0answers
110 views

libGDX box2D not setting user data

I am working about box2D. Even if I set userData, when I retrieve it via getUserData(), it returns null. Using debugger, I noticed that object passed to setUserData() is not null, but on the next ...
1
vote
1answer
45 views

LibGDX Bounding system with tiledMap, 3D model player and ortho cam

Begins explaining my achieve: as I said in my last question, I am tryna makin' a 2D game with 3D player as Factorium. For hours I am tryna to make a kinda of bounding system: 1)Camera will follow ...
0
votes
1answer
137 views

LibGDX make player rotate towards mouse pointer (Player facing mouse)

I am tryna makin' a 2D game with a 3D player (kinda of Factorium). I got stuck on the rotating of the player. I'd like it look always torwards to the mouse. e.g. If I move mouse on the top-left of the ...
0
votes
0answers
24 views

How to Show Daily Notification Using Libgdx Alarm Manager?

In a game written in Libgdx, I want to show users some daily notifications with the help of alarm manager. These notifications will be independent of Firebase. In other words, I will not send the ...
0
votes
1answer
59 views

LIBGDX: Shoot a bullet using mouse position

I want to shoot a bullet towards my mouse position but I think that my math is probably wrong since the position the bullets travel to isn't the right one. Here's my code ...
0
votes
0answers
21 views

LibGDX TiledMap Rendering

For the life of me I cannot figure out why these lines keep appearing on my rendered tiled map. Every time I resize my libgdx window, the tiled map creates lines all across the screen. I have adjusted ...
0
votes
0answers
42 views

LibGDX normal vector of a plane

I'm currently developing a 3D game with LibGDX, and I'm a bit stuck, and couldn't find any definitive answer. I have a plane, part of a bigger g3db file, to which I'd like to get a normal, to ...
0
votes
1answer
47 views

How can I add a button that opens a pop-up?

I have developed a game with a libGDX game engine. I want to create a button on the game screen and add a popup to this button. How can I do this? My current code: ...
0
votes
0answers
29 views

How to create a polygon button in LibGDX?

I need to make a button not a standard square shape, but a polygon shape.How to create a polygon button in LibGDX?
0
votes
1answer
103 views

How to make an application architecture a global strategy game?

I am doing a global libgdx strategy, how can I properly design the architecture? So far, I'm in some kind of chaos, because there are different events that need to be shown to the player in the form ...
3
votes
1answer
81 views

Getting a TileMap wrapping as a toroid on player movement

[libgdx version 1.9.13 - Desktop Game] This question seems to have been asked many times, but I have yet to find a decent solution. I want to display a map without edges, where the player moves in all ...
0
votes
1answer
34 views

libGDX imagebutton seeing double

If I leave my imagebuttons' width and height alone I get larger buttons than I'd like: radio.setX(wu*35); radio.setY(hu*20); When I replace/add to the ...
0
votes
1answer
149 views

How to integrate Firebase to Libgdx?

I have an android game built with libgdx and what I'd like to do is to add some kind of authentication so I can connect the game with user data to firebase database. I have some experience with ...
0
votes
0answers
33 views

What does "ShapeRenderer.ShapeType.Filled", "ShapeRenderer.ShapeType.Line" and "ShapeRenderer.ShapeType.Point" do in libGdx

I am creating a game and I wanted to include collision detection when I came across this: shapeRenderer.begin(ShapeRenderer.ShapeType.Filled); What is this and ...
0
votes
0answers
51 views

box2D vs manual collision handling in libGDX

I am developing a fairly simple game with Zelda-style physics where the only moving objects will be characters and other entities, however I am using a randomly generated (all in code, no .tmx) tile ...
0
votes
0answers
21 views

Why doesn't my fmx TiIeMap render?

I've a .tmx map made with Tiled. In my map there is one Layer and one Object. I'm able to load the object but I don't understand ...
0
votes
0answers
40 views

LibGDX program crashing on on StepSimulation call

I am trying to add a Character Controller to a Discrete Dynamics World in Bullet via the LibGDX wrapper and everything seems to work, but when I attempt to update the world via the StepSimulation ...
1
vote
0answers
22 views

Statemachine to behaviour tree?

Background I was able to convert simple statemachines like this... Into a BT looking like this (Notation describtion)... ...
1
vote
0answers
25 views

Parallax camera is not independent from the stage camera

I have a weird camera problem that I can't solve! I add my actors to the main stage and use its camera too. Actors are constrained within the screen viewport. I also have a second camera that I use ...
0
votes
1answer
90 views

How can I load assets dynamically on user's input in LibGDX HTML?

I am working with LibGDX and GWT and I am trying to publish my app as a HTML webapp, it has many assets with around hundred of folders, now I want to load them dynamically (user input is sent to JSNI, ...
0
votes
1answer
60 views

2d gravity simulator - smaller object orbiting towards center of bigger object

In my libgdx test game, I have initially created 2 circle objects (stellar) about which I will say more in details below. However, my goal is to simulate gravity in 2d, where smaller object orbits ...
1
vote
2answers
153 views

Calculate aim angle dead zone range

In my top down 2D shooter game the player has a shoulder mounted gun which rotates and aims automatically at enemies - that part is all working fine. Since the player can rotate as well, the gun is ...
0
votes
1answer
209 views

Why don't ShaderToy shaders work with LibGDX?

Can someone tell me what is different about the shader implementation in LibGDX that makes it incompatible with the shaders from ShaderToy? It looks like you can use ShaderToy shaders directly with ...
0
votes
0answers
80 views

LibGDX 2D Silhouette

recently I decided to implement in my game the drawing of a silhouette of the player when he is behind objects (the top layer of the map). Found a similar question here, but it doesn't matter to me to ...
0
votes
0answers
93 views

How to change the border color of a button in libGDX?

How to change the border color of a button. I know how to change the background, but I don’t know this, although I reviewed the entire documentation. And is it possible to find out whether the button ...

1
2 3 4 5
46