Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
0 votes
0 answers
183 views

How to shade the whole Google Map except for radii?

I am implementing line-of-sight into a strategy game I am developing, and I would like to shade the map darker outside of the LoS of the player and their structures (fog of war). The trick is, this is ...
TheBiscuit's user avatar
1 vote
2 answers
814 views

SurfaceView shows black screen

My code does not work correctly. SurfaceView shows a black screen instead of Bitmaps. I make a game loop that doesn't depend on CPU, like Fix Your Timestep!, but I can't get it to work. ...
Limpan's user avatar
  • 11
0 votes
1 answer
265 views

Button on click event crashes

I'm trying to create an android game using libgdx with a Titlescreen, you just press start and your game startes. However I'm having difficulty trying to get these buttons to work. The titlescreen ...
stayutazen's user avatar
1 vote
0 answers
101 views

What happens to deleted or added assets in your app when updating to a new version in the Google Play Store and iOS App Store?

So let's say I used Unity and built an app and uploaded it to the android and iOS app store, it is 100 MB and lots of people downloaded it. So now I want to update it to the newer version, however ...
EmperiumIce's user avatar
1 vote
1 answer
226 views

How to create an even gamescore?

Currently I'm doing an android game. My problem is the score. The game speeds up in every round and currently I'm counting the score like this: ...
Sanevent's user avatar
0 votes
1 answer
492 views

How to use Glide

I want to implement glide in my game but I don't know how. I know that the Glide format is: Glide.with(context).load(R.drawable.image).into(imageView); But I don'...
Zekirak's user avatar
  • 111
-2 votes
1 answer
312 views

In android studio, how can I move ball to point I click? [closed]

I try to create a game like billiards. I want to move the ball the point I clicked.
Alihan Karabulut's user avatar
0 votes
1 answer
2k views

How to create activity again in Android?

I am making some game and I want to create activity again after click on some Button. For example: I have activities A (game) and B (after game menu). I want to go back to activity A after clicking "...
Jon Doe's user avatar
  • 17
0 votes
1 answer
1k views

Detect android device rotation

I am developing a game in android and I want to be able to use device rotation for moving. So, I am not sure what sensors should I use. I tried gyroscope, it will do, but there are not a lot of ...
Jon Doe's user avatar
  • 17
2 votes
2 answers
579 views

How To Add Animation Graphics To An Android Game

How to make something like this animation drawings that coming out from the car ? (I'm using android studio) The Game's Link : Finger Driver
J.N's user avatar
  • 21
0 votes
1 answer
492 views

Problem getting in adjust the image in drawable canvas

I am working on the game which i develop on android and i am just stuck on adjust the images. I want the spinning ball image in center where i targeted the red color on the given image and the both ...
Kunal Pitale's user avatar
0 votes
1 answer
989 views

How to generate circles every 2 seconds

I want to generate circles every 2 seconds, in this case 5 but I can't get it. Instead of creating a circle every 2 seconds, the app wait 10 seconds and draw the 5 circles together. What am I doing ...
Agustin Val's user avatar
3 votes
1 answer
1k views

how to slide pieces for a slide puzzle game for android(libgdx)

I want to make a small one-screen game in which the player has to slide pieces of an image until the image is completed. I used texture regions to create the pieces from an image ...
Brett_'s user avatar
  • 31
1 vote
0 answers
59 views

Android Game Screen Limits [closed]

I'm trying to do a game but I'm stuck. I have a player and I move it with the buttons but I can't make the player stop when it reachs the screen limits. What am I doing wrong? Main Activity: ...
Agustin Val's user avatar
20 votes
2 answers
7k views

Unity Method count exceed the limit of 64K

I just got an issue related to a 64k method in Unity so that's why I'm unable to build my project. It shows method limitation exceed the limit of 64k method count. So can anyone here help me out to ...
Rakesh's user avatar
  • 539
0 votes
1 answer
475 views

How do I make so the player jump happens only once in a onScreenController on LIBGDX and the player doesn't stick on the roof?

I'm making a simple platform game, and I was following this tutorial to make an onScreenController (https://www.youtube.com/watch?v=z4Vqkp_ve3I&t=66s). There's one think that's not how I want it ...
J. Carlos's user avatar
3 votes
1 answer
217 views

Android Studio with libGDX doesn't recognize boolean

In my game, when the users clicks an image button, the value of a boolean changes and then the game is closed. I mean, if I want to restart the game, I click this image button, the game is closed and ...
Curio's user avatar
  • 199
2 votes
2 answers
1k views

LibGDX with SoundPool

I'm developing a game for Android using LibGDX in Android Studio. I recently found out that some sounds in my game fail to play. I noticed that every time a sound fails to play, these are the logs: ...
Gad Wissberg's user avatar
1 vote
0 answers
709 views

How to fit a bitmap to a random size rect so it does not strech? (Android Studio)

I'm trying to fit a bitmap to a random size rect but I don't want the bitmap to be streched out. I've tried using BitmapShader and tile it but it become animated and not fixed. Here is my code ...
realNewbie's user avatar
0 votes
1 answer
893 views

How to randomly spawn a Rect on x position (android studio)?

I want to draw a rect with a 50x50 size, however I want it to appear randomly on the x position. Where should i set the x position? This is how i set my rectangle. ...
realNewbie's user avatar
0 votes
1 answer
1k views

Why do I get java.lang.OutOfMemoryError in android studio after adding a 2nd activity?

After I decided to create an activity to show the results of the game with try again button. Every 3rd try the game will stop with this error. java.lang.OutOfMemoryError: Failed to allocate a ...
realNewbie's user avatar
2 votes
1 answer
14k views

Can I make a multiplayer Android Game using Android Studio?

I want to create a multiplayer android game, where the clients connect together via a web server. My question is: Is it possible to make this kind of games using Android Studio with other libraries ...
Mr.bit's user avatar
  • 23
1 vote
2 answers
607 views

How to Refresh Dependencies after Adding FreeType Extension in Android Project

I'm planning to use FreeType fonts in my game (LibGDX and Android Studio) and I already added the freetype dependencies in my project. How can I refresh the dependencies after adding them? I have ...
JAlmazan's user avatar
-1 votes
1 answer
656 views

Why does the Texture from AssetManager displays black rectangles only (LibGDX)?

I loaded and get a texture from assetmanager but whenever I test the app it only shows black rectangles instead of the texture. I tried finding some probable cause for this in my code but I can't ...
JAlmazan's user avatar
1 vote
2 answers
438 views

Should I use Unity for a "non-game" mobile app? [closed]

I have some experience with Unity but I always made games only. Right now I have an idea for an app but I don't think Unity is the most efficient way to do it. Probably Android SDK and OpenGL ES would ...
Moaz Ashraf's user avatar
1 vote
2 answers
437 views

Memory leak while loading libgdx game screen

So, I have a lot of texture atlases in my code for a talking tom type libgdx, and I use around 6 of them per screen. The app crashes abruptly without any errors on devices with 1gb ram or less. I ...
Storm's user avatar
  • 57
1 vote
2 answers
132 views

Image Does Not Animate and is Stuck in one Frame

I'm having a problem in my code where the animation from another class does not animate and is stuck in one frame. The image moves across the screen in the right manner though. I know that the problem ...
JAlmazan's user avatar
0 votes
1 answer
871 views

What is the meaning of this "MuxOMX ctor" log in LibGDX?

I'm developing a game in Java for Android using LibGDX with Android Studio. I'm using the AssetsManager class and I've noticed weird log when finishLoading() is finished: ...
Gad Wissberg's user avatar
1 vote
3 answers
731 views

Better Way to Detect Line Cross

I am developing a very simple game in libGDX for android devices. Simply, the game is a character who runs and jumps over obstacles, every time the character jumps over one of said obstacles, a ...
MrPhooky's user avatar
  • 113
3 votes
0 answers
482 views

Making use of the Android GPU debugging tools

I tried following the manual to install the Android GPU debugging tools for android Studio 2.0. Unfortunately it has not been very successful. I have been following the instructions of the official ...
Busti's user avatar
  • 131
1 vote
1 answer
1k views

android game change background image at every level?

I want to be able to have a different background image at each level of my game. Presently I have only one. There is no layout folder shown in Android Studio and all info I have searched shows how to ...
Mohamed Aadhil's user avatar
1 vote
0 answers
613 views

Export UnityProject inside Android Studio's existing project

I am new to the Unity3D, but I have made a small Unity project with a humanoid gameobject. I can move this humanoid with the demo data but I want to move it with ...
Jai Aggarwal's user avatar
1 vote
1 answer
537 views

LibGDx android : Show animation on button click

I am trying to create an application using libgdx where i need an animation to be played on pressing an image button, i've been able to achieve it using this code ...
Storm's user avatar
  • 57
9 votes
2 answers
1k views

Libgdx black rectangles problem

I'm working on a game for Android using Android Studio with LibGDX in Java. I recently found a weird problem when closing and reopening the game. When I first open the game, it works fine. If I click ...
Gad Wissberg's user avatar
4 votes
0 answers
806 views

Libgdx stops all sounds when there are lots of sounds

I'm making a 2D game for Android using Android Studio with Libgdx in Java. I have a class, called SoundPlayer, which holds an ArrayMap. The key is the name of the sound file and the value is the sound ...
Gad Wissberg's user avatar
0 votes
1 answer
338 views

Simplifying Object Factory

I'm making a game for Android using Libgdx with Android Studio in Java. In my game, I have a class called ObjectFactory which has a method createGameObject(int objectType) which receives an integer ...
Gad Wissberg's user avatar
4 votes
2 answers
1k views

Main game objects as static

I'm making a game for Android using Android Studio with Libgdx in Java. In my game there are main object like Screen, ObjectFactory, SoundPlayer, Painter (Responsible for drawing) and a few more. 'til ...
Gad Wissberg's user avatar
0 votes
2 answers
676 views

Is this how I use activities in android studio?

I'm a student who is just stepping into android game development. I'd like to create a text-based RPG game for android and started to learn about Android Studio (I think Android Studio is enough ...
Jason J.Y. Kim's user avatar
0 votes
1 answer
437 views

Make a sprite jump to a certain direction in libGDX

I was wondering how you can make a sprite jump to a certain direction in libGDX just like the brick does in the famous mobile game "Amazing Brick' I want to make my sprite jump up a bit to the right ...
user78123's user avatar
1 vote
0 answers
658 views

Image Buttons Have Low Resolution Quality

I'm using Synfig Animator to draw my animations for my android game I'm also using Android Studio to write the code for it, However. On testing, the images that i'm using looks very bad and unfocused ...
Zack Tombson's user avatar
1 vote
2 answers
2k views

How to implement 2 cameras in a unique stage using LibGDX

I am quite new to LibGDX. I am trying to make a game, where the character is an Actor, and it's controlled by a Touchpad(...
Asaltaviejas's user avatar
1 vote
0 answers
255 views

OpenGL ES 2.0: Highly variable time spent in GLES20.glDrawArrays(). How to find the cause?

How can I debug why the time take to issue exactly the same GL commands to render a frame, especially the call to GLES20.glDrawArrays(), is highly variable even when there is no garbage collection and ...
Tobias's user avatar
  • 171
1 vote
2 answers
297 views

How can I exclude my enemies from spawning in certain zones generated at random?

I have a code where I randomly generate enemy spawn position, but I want to exclude some areas since it's colliding with some sprites it shouldn't collide with. This is the code where I generate the ...
OrangeHat's user avatar
  • 123
4 votes
1 answer
417 views

Setting 4 different enemy spawn zones off screen

This is my first game, so I really appreciate all the help. I want to create four enemy spawn zones for enemies and this areas are off screen. The enemies are coming from left, right, up and down, ...
OrangeHat's user avatar
  • 123
6 votes
1 answer
719 views

Spawning enemies in four different positions with a fixed trajectory in android game

This is my first android game, I appreciate all the help. I want to define 4 spawning zones starting from out of the screen (left, right, up and down). Enemies coming from this areas have a fixed ...
OrangeHat's user avatar
  • 123
3 votes
1 answer
154 views

Sounds make Andengine Scene junky

I have a GameScene which has a character (animated sprite), AutoParallaxBackground background with quite large textures and no ...
Nikola Despotoski's user avatar
1 vote
1 answer
97 views

Why is my Box2D Body only colliding with one type of Object after a new level has been built?

So developing for an android mobile game, using Android Studio and developing for the API 17, with Box2D implemented. FIRST LEVEL For some reason, one the first level everything is running okay: ...
101_son's user avatar
  • 66
0 votes
2 answers
982 views

2D Coordinate Based Game [duplicate]

I want to make a game for Android that has a 10x10 Grid Plane as UI.In this game users going to touch on a grid and tihs grid will be painted. My question is how do I understand which gird or tile ...
Recomer's user avatar