Android is an operating system for mobile devices developed and maintained by Google, Inc. This tag should contain specific programming questions about Android.
-1
votes
1answer
49 views
0
votes
0answers
53 views
how to generate human face mesh with array of vertices [on hold]
I want to generate mesh for human face for android app using opengles2.0 from the array with vertex points which lies on boundary of the face,for example float[]Array={0.05f,0.4f,0.0f,0.3f,-0.8f,0.0f,....
0
votes
0answers
30 views
openGL ES - Cube and texture coordinates
I'm learning openGL ES (1.0 - Android) because I'm interested in writing a simple framework (for learning purpose).
I'm writing all the "primitive" 3d objects (a cube in this case), they seem work ...
0
votes
0answers
6 views
Plotting coordinates based on the other projection present in the scene in LibGDx
I am using LibGDx library to render 3D graphics on camera view on Android Platform. I am able to render a model using a projection. Then i wanted to render 3D texts over the model with different ...
0
votes
0answers
20 views
How to infinitely repeat background with parallax scrolling in Libgdx?
I am using this class:
import com.badlogic.gdx.graphics.g2d.TextureRegion;
public class ParallaxLayer {
// the Texture sitting on this layer
public TextureRegion region;
/**
* how much ...
0
votes
0answers
14 views
Setting up libgdx with sbt
I ran into setting up libgdx with sbt, but the tutorial seems rather outdated. Could not build it without any errors due to sbt not being able to find the version of robovm indicated in the build.sbt ...
0
votes
0answers
13 views
Tools to make a basic point-and-click game for old androids [on hold]
I'm looking for an engine to develop an educational game for Android, whose goal is to present informations around a topic.
One of the requirements is that it should run on old phones as well as ...
0
votes
1answer
35 views
OpenGL ES black screen
am a beginner in drawing with OpenGL ES and i have a problem. I am drawing a figure consisting of triangles in orthographic projection. When I run my app i see a black screen and system buttons only (...
2
votes
1answer
38 views
How do I tell the difference between tapping and holding the touchscreen?
I have a problem with the Unity game engine. I am making an Android game. I want to move an object by a small distance every time the user taps the screen, but not when the user holds the screen.
...
0
votes
0answers
7 views
Android mp3 output save
I'm working on an Android game that creates music by playing different mp3 files at different times based on the users input. I would like to make it so the users can save there creations but dont ...
1
vote
1answer
38 views
TiledMap taking a lot of time to load in libgdx
I am developing a game using libGdx in which a level has 2400 * 450 tiles Map and each tile is of 4 pixels. I am also using box2d in my game.
My problem is that when I run the game on my phone it ...
0
votes
0answers
10 views
Cannot generate android project with cocos compile command
I am trying to compile cocos C++ project with the following command :
cocos compile -p android --ap android-23 --android-studio
But i am getting this error....
Android NDK: ERROR:F:\Projects\...
1
vote
0answers
17 views
Clicklisteners not working correcly (conflicting)
In my pause dialog, the exit is working correctly, but the resume isn't, if I press resume 3 times, the third time it's going to exit.
ImageButton btnPlayOn = UIFactory.createButton(txtrPlayOn);
...
1
vote
1answer
31 views
LibGdx animation sequence
In my game the character movement animations work fine
but now I'm trying to do a sequence of programmatic animations,
for an enemy character, and it's proving to be a pain.
I'm just doing it on ...
0
votes
0answers
20 views
Libgdx: resizing images correctly
The numbers are taken using photoshop. I have a 32*32 pixel image
I am using
viewport = new StretchViewport(800, 400, camera);
Camera x and y are also 800. I can't change the viewport.
The ...
0
votes
0answers
31 views
Libgdx: How to setZIndex for pause dialog?
Pause dialog has to appear on top of the play screen, it has to appear on top of other objects.
I have tried to use
dialog.setZIndex(10); // or whatever number and I tried adding it in many places
...
0
votes
0answers
12 views
GLSurfaceView with buttons on top and overlaying a SurfaceView
I need to have a custom SurfaceView overlayed by a GLSurfaceView with buttons above each of them. At the moment, these are standard android button, but after I may want to replace them with another ...
1
vote
1answer
26 views
Difference between Gdx.graphics.getWidth() and camera.viewportWidth
I am a newbie in game development and I am developing an android game using Libgdx on intelliJ IDE.
I want to understand the difference between Gdx.graphics.getWidth() and camera.viewportWidth .
As I ...
0
votes
0answers
20 views
Not able to download video in unity Android app?
It works fine for online streaming of the video but I want the video to be fully downloaded first and then played. Also I tried to put get progress of the download in UI but I am not able to do it. ...
0
votes
1answer
19 views
Libgdx Scene2D second screen animating and accept input while still loading
I'm currently developing an app Scene2D that involves a small number of screen switches. I am having a problem that after calling set screen there appears to be a pause of a second or two (I think it'...
0
votes
0answers
21 views
Is Unity Android Auto scale reliable?
I am developing an Android 2D game in Unity. I would like to support maximum screens. I know Unity automatically scales the objects based on the aspect ratio of the device. But to what extent is it ...
0
votes
1answer
63 views
Unity 5.5.1f1 new UI system: Button in scrollview is not working on Android. Is this known issue? Is there a workaround?
It works perfectly in the editor, but on Android it only sometimes registers an OnClick when I press it with my finger.
I'm on Unity 5.5.1f1
Is this a known issue? I'll post some videos of it if no-...
0
votes
1answer
24 views
Creating trading card board layout in libgdx
I wanna make a trading card game using libgdx. I have a general idea about how to implement the server side of the game and the game rules, but I don't know how to design the visual interface of the ...
0
votes
0answers
18 views
Can I access the Android API for Google Drive from An UE4 game?
I've just discovered that Google Drive is available to Android app devs directly (that is, Google Drive was 'integrated' in Android):
Android API
Can it be somehow accessed in an Unreal Engine 4 ...
0
votes
0answers
30 views
How do I promote my first android game? [duplicate]
I've created an android game and want to know what people think about the game. I want to promote my game, but as a novice in marketing, I don't know what to do.
Where should I start the promotion? ...
1
vote
0answers
32 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 ...
1
vote
1answer
66 views
Game Loop delay the right way and game speed
I am a newbie game developer. I am trying to find a right way to create my game loop.
Consider following example.
Simple Android Game
I have a game with a simple gameplay - bouncing ball.
I want ...
0
votes
2answers
42 views
How can I put borders to the camera with gameobjects regardless of the resolution?
I'm making a game in Unity, in my game I have a sphere, what I need is that the
sphere rebound on the edges of the camera.
For that I used a few Gameobjects with 2D box colliders.
The problem is ...
0
votes
0answers
41 views
Problem when building tutorial of Cocos2D
I'm new in gamedev and I'm learning cocos2d-js. I'm following the tutorial and I tried to make a build to install it on my phone and test it.
I can run on web and I can also compile for debug with:
...
0
votes
0answers
15 views
Pixmap packer null pointer exceprion
While using the PixmapPacker for creating texture atlas at runtime like the following
PixmapPacker packer = new PixmapPacker(512, 512, Format.RGB565, 2, true);
packer.pack("First Pixmap", pixmap1);
...
0
votes
1answer
72 views
Libgdx: Aligning buttons inside dialog
I have the following dialog, semi circle shape. I want to position buttons in it.
dialog.button(closeButton, false);
dialog.getContentTable().add(buttonS);
dialog....
0
votes
1answer
29 views
SOLVED difficulty with final admob configuration/implementation libgdx
I've been trying to include some ads in my app using AdMob. It all launches ok so i assume i have the library added correctly etc. I followed a tutorial that was over a year old (Brent Aureli on ...
0
votes
0answers
8 views
When changing Google Play version in gradle to most recent version it doesnt work (libgdx)
I have GPGS installed ok in my apps and I was using version 10.0.1, I notice from this page https://developers.google.com/android/guides/releases that the latest version is 10.2
When i change it in ...
0
votes
2answers
52 views
Libgdx: How to draw the score on the top left?
I want to keep the score visible on the top left corner of the screen. I have the score talking care of. I just want to display it.
Score: x
The comment on the accepted answer on Stackoverflow ...
0
votes
0answers
48 views
Libgdx: Candy crush style bouncing button animation
This article describes how to make candy crush style bouncing button animation using SVG
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<svg width="100%" height="...
1
vote
0answers
43 views
Speed of procedural geometries
I'm evaluating solutions for creating a VR videogame that should run on cellphones. The assets will be streamed from our servers and that could be a problem on limited capabilities devices.
Since the ...
0
votes
0answers
15 views
How to record a video with sound from Android phone (or inside Android Studio project)
I am using Libgdx with Android Studio to create some games. I'd like to create short videos with sound included, is this possible?
I'm using a Galaxy Note 3 which I have managed to record silent ...
0
votes
1answer
155 views
Best way to manage thousands of objects in an multiplayer online game? [closed]
I'm currently planning to develop a real-time multiplayer online game, using the Google Maps API on Android. I thought about having survival-like game play, where you collect resources to build ...
0
votes
1answer
41 views
How to change the position of a dialog?
I have created a dialog in Libgdx main menu screen.
I have tried
dialog.setPosition(300, 300);
dialog.show(stage);
It doesn't do anything. Is it a camera trick? Am I missing something?
1
vote
1answer
42 views
Libgdx: How to rotate a button on main menu
How to keep rotating a button on main menu screen around its center, here's the code for the button
final ImageButton btnSett=UIFactory.createButton(txtrSettings);
btnSett.setScale(1,1);
btnSett....
0
votes
2answers
37 views
Libgdx: how to pick a random texture?
I'm trying to pick a random texture from a fodler placed in assets and use it but it's giving me errors. I'm doing so in the main game screen class
final File dir = new File("img");
Random ...
1
vote
0answers
27 views
How to delete Google Play Services?
I want to delete Google Play Services in the Google Play Developer Console, but I can't. Here is what I did:
I published my game to Google Play without Google Play Services.
I decided that I want ...
0
votes
1answer
32 views
Double touch joysticks
I am developing a mobile game where I need to control main character in any direction using touch analog joystick (https://pineight.com/mw/images/6/6f/Ipoc_dpad.png). It's ok but I also want my ...
3
votes
2answers
253 views
How do I force a game object to move along projectile trajectory, like in Angry Birds?
I am a new Android game developer. I want to force my game object to move in a projectile trajectory, like in Angry Birds.Related example here
and my example You can see an example in the image.
I ...
0
votes
1answer
77 views
How to move an object from off screen right to left continuously?
I am trying to make an object move from off screen on the right to off screen left and continuously generate (like the flappy bird pipes). How would I do this with my current code below? I have tried ...
0
votes
1answer
34 views
How to change mute/unmute button?
I'm saving music in libgdx preference, the following code works perfectly but if you enter the settings again you'd see the initial button up regardless if the sound is muted or not.
TextureAtlas ...
0
votes
0answers
33 views
Unity- unable to merge Manifest error?
I am unable to build my project due to the error that unable to merge manifest , I am trying to integrate appodeal in my project and following the documents provided by them. My log are as follows.
...
0
votes
0answers
34 views
GLSL quaternion and translate vertices
I am using OpenGL Es2 for Android, I load a Collada model which has very simple armature and animation, the armature has 30 joints so to solve the OpenGL ES2 uniforms limitation I send quaternions and ...
0
votes
1answer
38 views
Libgdx: How to leave the dialog visible?
setBtn.addListener(new ClickListener() {
@Override
public void clicked(InputEvent event, float x, float y) {
final Dialog dialog = new Dialog("Settings", skin, "dialog") {
...
0
votes
2answers
45 views
How to make a sprite jump up and return to original position android java libgdx [duplicate]
So I am just trying to make my game character, which is a texture (ball), to jump up in the air and then return back down to the position that it started at when the screen is pressed. I was just ...