Questions tagged as 'libgdx'

1
answer

Libgdx Google play service crash

To see guys I've been with this problem a long time, and I have not been able to fix it, I hope you can give me a little hand. * I'm using eclipse moon * Use LibGDX * My app has ads On very few devices my app crashes, in most the app...
asked by 12.09.2016 / 01:55
3
answers

Buttons with android and LibGDX

Hi, I created a little button on android, with libGDX very simple, but the problem is this: I have assigned a function that writes on screen ("hola") something like this: if(boton.sePulsa()){ System.out.println("hola") } and...
asked by 16.08.2016 / 18:29
1
answer

Error showing libGDX animation

When drawing the animation, just grab the first texture, do not go through the array and I do not know why ... Here I leave the fragment of the render, when I call the animation if(juegoAcabado){ // Si hi ha hagut col·lisió:...
asked by 31.05.2018 / 12:33
2
answers

Constant movement of an actor in libgdx

I am developing a game in libgdx . The game consists of an actor, which the camera constantly follows with that actor centered. My problem is that the movement of the actor is not resolved, because I would like it to behave like S...
asked by 27.02.2017 / 10:34
1
answer

How to put a TextureRegion [] in a TileMap in libGDX?

I am creating a game and for the character I used an array of TextureRegion, in order to animate the movement when walking. I have everything done, except that when drawing the character with the SpriteBatch . When I pass behind an object speci...
asked by 10.11.2016 / 17:39
1
answer

Error compiling in LibGDX "finished with non-zero exit value 1"

When I compiled my game in Android Studio with LibGDX, I missed this error: Error:Execution failed for task ':android:processDebugResources'. > com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Proc...
asked by 26.02.2016 / 16:26
0
answers

Draw several actors of the same class on the screen (LibGDX JAVA)

When creating different actors of the same class, each one with a different position when executing the program only creates the last created actor. public class MyGdxAjedrez extends ApplicationAdapter { private SpriteBatch lienzo; priv...
asked by 10.04.2018 / 16:38
0
answers

Blinking LIBDGX

Hello, I have the following code: package cat.xtec.ioc.screens; import com.badlogic.gdx.Gdx; import com.badlogic.gdx.Input; import com.badlogic.gdx.Screen; import com.badlogic.gdx.graphics.Color; import com.badlogic.gdx.graphics.g2d.Batch; im...
asked by 11.12.2017 / 17:25
1
answer

Delete Object of arraylist in LIBGDX

private List<LadrilloVERDEEntity> LadrilloVERDElist = new ArrayList<LadrilloVERDEEntity>(); LadrilloVERDElist.add(new LadrilloVERDEEntity(world, ladriVerdeTexture,10,3)); LadrilloVERDElist.remove(1);// Acá es donde me marca error...
asked by 12.07.2016 / 19:03
0
answers

How to rotate a body object using box2d and scene2d in libgdx with Java

I want it to be moving in a straight line and at the same time turning. I already resolved to move in a straight line with this instruction: mBody.setLinearVelocity(5, 0); But now I want it to turn. Try with setTransform but nothing...
asked by 24.11.2018 / 03:33