Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 99700

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.

1 vote

How can I draw image and label on another image

You could try and extend an Actor with what you need instead of using the ones supplied in LibGdx. This example below(not tested) should give you an idea of what's needed. …
dfour's user avatar
  • 768
2 votes
Accepted

How can I make a GameScreen?

I would first recomend you look into a few tutorial sites like Full Libgdx game tutorial or Games From Scratch. … Libgdx comes with a Game class which you can extend for your application. This will be the starting point of your app. …
dfour's user avatar
  • 768
0 votes
Accepted

Libgdx 2d floor Animation

If I understand correctly you are getting gaps between the textures. This is usually caused by floating point rounding errors and can usually be solved by using a texture packer to pack your images …
dfour's user avatar
  • 768
1 vote

What is the exact unit in LibGDX if it says "private static final float WORLD_SIZE = 480"?

A unit by itself is just a unit. It doesn't represent anything until you know the context of what it is used for. If for example the WORLD_SIZE is used with Box2D to represent the size of the world t …
dfour's user avatar
  • 768
1 vote

object array positioning-LibGdx

You can use sin and cos to get the points each coin should be from the object. This example will create 3 coins around the exploding object. explodedItems = new Array<Vector2>(); // array to hold …
dfour's user avatar
  • 768
3 votes
Accepted

Playing two sound effects in a queue libgdx

You could load your sound as music and then use the setOnCompletionListener Music s1 = Gdx.audio.newMusic(Gdx.files.internal("some1.wav")); Music s2 = Gdx.audio.newMusic(Gdx.files.internal("s …
dfour's user avatar
  • 768
0 votes

Collision detection for an arc of a circle

I answered this question already Collision detection for an arc of a circle however I will sum it up here: You can create a polygon that represents the area you want to detect collisions for using co …
dfour's user avatar
  • 768
0 votes

LibGDX - On the "slowness" of loading assets

The AssetManager's load method only adds the items to the queue of items to be loaded by the AssetManager. The actual loading is done in the finishLoading() (blocking) or update()(non blocking) method …
dfour's user avatar
  • 768
1 vote

How to limit velocity of object on touchDragged event?

You can use the MathUtils.lerp function to interpolate between current position and target position. Reduce the final argument until you get a smooth movement. position.x = MathUtils.lerp(position.x, …
dfour's user avatar
  • 768
1 vote

How can I make expanding bullet pattern shapes?

As pointed out by Charanor you can use an array of points to define your shape and then update their position over time. Below is a working example of how to implement a star shape or a custom shape u …
dfour's user avatar
  • 768
1 vote
Accepted

LibGDX - managing zoom

The camera viewport width and height do not need updated after the camera zoom is changed as this is done already inside the update method. The OrthographicCamera update method: @Override public voi …
dfour's user avatar
  • 768
1 vote
Accepted

How to handle mixed input

You can use an InputMultiplexer to combine 2 input processors. The multiplexer will accept stage as it is an inputProcessor which would be your GUI. You can then add your game's input processor as the …
dfour's user avatar
  • 768
2 votes

to remove body....in libgdx

It looks like you are using 1 timer value for all your fireballs and it looks like you want each fireball to last 0.5 seconds before being destroyed. So, what you need to do is to have each fireball h …
dfour's user avatar
  • 768
1 vote
Accepted

Move Animation in LibGdx

Your problem lies in this code for (int i = 0; currentPosition <= playablePosition; i++) { currentPosition += i; batch.begin(); batch.draw(animation_run.getKeyFrame(elapsedTime), currentP …
dfour's user avatar
  • 768
1 vote

LibGDX. How to fill background with shader?

The first step in creating and using a shader in libgdx is to create the shader vert and frag components. You already have these in your question. … The second step is to create the shader in libgdx and that is done with this code: ShaderProgram.pedantic = false; ShaderProgram shader = new ShaderProgram( Gdx.files.internal("shaders/vert.vert …
dfour's user avatar
  • 768

15 30 50 per page