All Questions
Tagged with android-studio java
33 questions
0
votes
1
answer
103
views
Comparison of 2 different quaternion axes
I am trying to compare the Z-axis and the X-axis of two different quaternions in a way that would give me the Euler angles about the X and Y axes to line up the two different axes. In my program, the ...
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 ...
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.
...
0
votes
0
answers
90
views
SurfaceView gameloop
Could you suggest an implementation of a game loop with interpolation for SurfaceView and thread?
i have this, but it doesnt work.
...
0
votes
0
answers
83
views
In my Online multiplayer quiz game how can i make players to join and compete at a time?
I am creating a multiplayer Online quiz game in Android Studio using Java. I am having players registered using Firebase in my app. Ok so the main thing is , I'm having different set of quiz ...
0
votes
1
answer
180
views
How can I add a button that opens a pop-up?
I have developed a game with a libGDX game engine. I want to create a button on the game screen and add a popup to this button. How can I do this?
My current code:
...
1
vote
0
answers
28
views
Recognize L-Shape in a 4x4 Matrix
I'm trying to make a board game, there the player has to press four buttons to make the L. It can be mirrored or rotated, it just has to be an L.
But if the player press four buttons and make another ...
0
votes
1
answer
2k
views
Error while trying to Build APK, fails when profile option is enabled
When I build normally my android app it execute without no problems, but when I go to File -> Buil and Run and I eneble Development Build and Autoconnect to profiler I got this error
...
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 ...
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:
...
1
vote
2
answers
913
views
LibGDX: Why won't certain actions work on my Actor?
In my GameClass, I called the Stage.act and Stage.draw methods in the right order accordingly.
I have actions set up so that the actor fades in/fades out, bounces down/up, and also rotate, like so:
<...
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 ...
0
votes
1
answer
321
views
How can I track two fingers?
Im trying to make make game which is intended to be played with the phone in landscape mode, and the player uses their thumbs to control the movement. The game controls look like this:
On the left ...
1
vote
1
answer
772
views
Problem in Splash Screen (Libgdx)
I made the game in libgdx and i want the splash screen in the starting but its show splash screen but not move to the game screen. I don't know what was the problem even the run time error also not ...
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
...
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:
...
2
votes
1
answer
159
views
How to know if these profiler values are good or bad?
I'm making a 2D game for Android Mobile using LibGDX and Java in Android Studio. My game mostly runs alright with 60FPS, but for some time to time it lowers to 50FPS. I'm trying to find out what ...
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 ...
2
votes
1
answer
703
views
Drawing a graph in Java JPEG/PNG for a simple map
For my game i need to create a map based on a graph starting from the coordinates of the nodes, using "roads" instead of simple lines (for the edges) and circles instead of points (for nodes), but i ...
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.
...
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 ...
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:
...
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 ...
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 ...
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 ...
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 ...
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(...
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 ...
1
vote
0
answers
59
views
animation of an Actor in libgdx crashes on iphone
I am using a class found here on stackover for the animation of the actors , but I crash on the physical device
class AnimatedImage.java:
...
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, ...
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 ...
4
votes
1
answer
288
views
Is there an optimal method to implement moving background?
I am trying to develop a little game using libGDX. We have a hero who jumps and world consist of dynamically created moving platforms in an auto side-scrolling manner.
I wanted background to scroll at ...
0
votes
2
answers
574
views
Why does Intersector.overlaps return false?
I am trying my hand at creating a simple game using libGDX.
The idea is: We have a hero who jumps and world consist of dynamically created moving platforms in an auto side-scrolling manner. In order ...