2
votes
Accepted
LibGDX: Why won't certain actions work on my Actor?
You need to draw you actor with a method that handle rotation
...
1
vote
SurfaceView shows black screen
I have also run into this issue. When my game view would start, I would see the SurfaceView area flash black, then my background graphics would render. I believe this due to the surface view ...
1
vote
Error while trying to Build APK, fails when profile option is enabled
You are using a plugin, either a .aar or .jar, that is compiled with the UnityPlayer.jar (or ...
1
vote
Button on click event crashes
It looks like you never assign the game member-variable in your TitleScreen class, so it is null when the click handler is ...
1
vote
Accepted
How to create an even gamescore?
You could always base the score on the percentage of the starting countdown:
...
1
vote
How to use Glide
glide is used to set the image on an ImageView
you need to define an image view in your layout
...
1
vote
In android studio, how can I move ball to point I click?
On the ball object, create a global left button event and create a script with the following:
move_towards_point(mouse_x,mouse_y,5);
The ball will go at a speed ...
1
vote
Accepted
How to create activity again in Android?
When you are finished with an Activity you can destroy it. This means that it won't be running in the background. You can then call a new instance of the activity. This avoids creating and running ...
1
vote
How To Add Animation Graphics To An Android Game
As it has been already mentioned in the comments, this effect is called "Particle System".
What it does, basically, is spawn multiple objects over a period of time, and each object has a small ...
1
vote
Accepted
Problem getting in adjust the image in drawable canvas
Drawing the ball in the middle should be pretty straight-forward. The pseudocode would look something like this:
...
1
vote
How can I make my button do something when clicked?
You need to draw stuff in the rendering loop. Try doing the following:
...
1
vote
Libgdx black rectangles problem
Just had the same issue. Problem was that I had some texture regions as static fields. And to avoid finding texture region over and over for each object I added some extra static variable "...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
android-studio × 81android × 49
java × 33
libgdx × 33
unity × 9
animation × 4
andengine × 4
graphics × 3
scene2d × 3
collision-detection × 2
game-mechanics × 2
ios × 2
game-loop × 2
gamemaker × 2
maps × 2
opengl-es2 × 2
mobile × 2
sound × 2
google-play × 2
asset-management × 2
google-play-services × 2
build-process × 2
gradle × 2
c# × 1
opengl × 1