Questions tagged as 'libgdx'

1
answer

How to redeem an Actor variable in Libgdx?

I have the following Actor: public class Carta extends Actor { Sprite sprite; public static int val, pos, peso; Texture texture; public Carta(int valor, int posicao) { val = valor; pos = posicao; switch (val) { case 1:...
asked by 20.06.2016 / 16:37
1
answer

How to add Actor to a Screen with Libgdx?

I am not able to add actors (Actor) on a Screen. I want to show an actor in "ScreenMenu" and nothing happens (the actor does not appear), follow me code: MainClass.java public class MainClass extends Game{ public static Stage stage; privat...
asked by 01.05.2016 / 01:52
1
answer

How to display image size proportional to libgdx?

How do I display the images in my game that are size proportional to the screen size of the device, so that if an image has a 1/3 width of the screen on a 480x800 screen, it should also have the same 1/3 320x480 or 720x1280? I think it's with '...
asked by 12.06.2016 / 01:03
2
answers

Help with sounds in LibGdx

I am using this library for games, and wanted to know how I could do to put sounds to play during the game and with pre-set time?     
asked by 07.04.2017 / 03:59
1
answer

Increase speed during play

Good evening, I'm with this code and wanted to know how to increase the speed of the game as time goes by, or using punctuation, thank you link     
asked by 04.08.2017 / 04:48
0
answers

AdMob ad appears only once

Hello, can anyone help me with this problem? When I run my app in the emulator, the ad usually appears every time, but when I run on my phone the ad only appeared once and did not appear again. What can this be? I'm using the Gdx library for my...
asked by 24.06.2018 / 17:09
0
answers

Open Activity in LibGdx

I'm starting to study game creation with LibGdx , my question is: how do I make a function open another Activity ?     
asked by 13.05.2018 / 21:57
0
answers

How to use SQLite in an app made by Libgdx?

I'm making a game using Libgdx, and it's practically ready, I just need to get a way to save the game score, I decided to create a SQLite database with some basic table (id, name, score) fields. My problem is that I do not know how to link the c...
asked by 22.03.2018 / 18:35
0
answers

MyApp has stoped

Android app starter asking for help. Coincidentally, after running a direct app on my phone, I could not do the same thing in the emulator. Follow Logcat: 01-25 15:55:24.348 15565-15565/com.sdr.flappybird E/AndroidRuntime: FATAL EXCEPTION:...
asked by 25.01.2018 / 22:11
1
answer

Application Installation Failed

After using Android Studio for the first time on a mobile phone, I was not able to use the emulator normally. The message below appears. Anyone help me please? "Failed to establish session. It is possible that this issue is resolved by uninst...
asked by 25.01.2018 / 16:03