Android is an operating system for mobile devices. For non-developer questions, see http://android.stackexchange.com

learn more… | top users | synonyms

0
votes
0answers
3 views

How to use Canvas.translate to make a camera scrolling effect in android?

I'm making a game in android, and I'd like the "camera" to be always drawing the character in the center, I've been searching and I found out that I should use this method, but I don´t know how to use ...
0
votes
0answers
20 views

is there a formula to know how many enemies i can place before jumping character?

My game is very similar to the hidden game in chromes web browser. I have a character that needs to jump over incoming enemies. Is there any way i can know when to send an incoming enemy? Some of the ...
0
votes
0answers
8 views

Compiler error when building for Android after exporting Oculus assets

I have a Unity project which I'm planning to build both for PC and Android. The project is a VR game. For PC I'm using the Oculus SDK and for mobile I'm using ALPSVR SDK. I was working solely with ...
1
vote
1answer
16 views

libgdx - Check if body is touch

I have some bodies around the screen(Ball[] balls), and I would like to delete them when user touches them. Also, I have an Image as userData of the bodies. I dont want to make a function to all ...
1
vote
0answers
11 views

Google Play Games Signs Out Automatically without Internet Unity

I am using this in my game to implement games saving and loading. I have also tried the basic sign in process by using the following start function :- { PlayGamesClientConfiguration config ...
0
votes
0answers
19 views

OpenGL- Render to texture- a specific area of screen

I implemented FBO on my OpenGL Game. and Im rendering what is rendered to screen to a texture, the problem is that rendering to texture starts from lower left corner. look: what is rendered to ...
-2
votes
0answers
21 views

Build 8 Ball Pool Game for android & Integrate it in eclipse Project [on hold]

I have build an android app in eclipse now I just want to add a 8 Ball Pool like game in it. My Question is Which platform(sdk) I can use to build the game and how can I integrate that game in ...
0
votes
0answers
7 views

AndEngine : Collision does not make line disappear

I have drawn the line between two sprites and there is a rectangle. When the line collides with rectangle the line should be invisible else the line should be visible. But i am having problem with ...
0
votes
0answers
9 views

simplest way to detect collision with two bitmpas on android surface view

as title said. I have looked all over and havent found standard way to detect collision between two bitmaps on surface view. I tried intersect method with two rectangles, but didnt work. `practiseA ...
0
votes
0answers
16 views

Opengl Create FBO- fatal signal 11 error

in my android game, i want to render My scene in the FBO and a texture attached to it, and use that texture later, But When i use glGenFramebuffers i get this error: 07-30 06:17:27.839: A/libc(1338): ...
0
votes
1answer
62 views

2d character generator for android games

I am a developer, and not an artist. is there a 2d character generator that i can feed one picture and it will generate the proper files to be displayed for a running animation?
0
votes
0answers
16 views

How to make a clone of Brave Frontier or Hero Buster? [closed]

A quick question for those experienced enough to answer this. I've been meaning to make a game like "Brave Frontier", "Hero Buster" and "One Piece Treasure Cruise" to give examples. I know C# and ...
-2
votes
0answers
28 views

How do i move an Object in a circular motion around a point? [closed]

i want my object run like this image. public class Move extends Activity implements View.OnTouchListener { private float x=30; private float y=30; private float angle = 120; private ...
1
vote
2answers
27 views

How can I add extensions to libGDX

I had a problem with my Font in a game I am developing in libGdx. After some googling I was instructed to use the following code: private void createFonts() { FileHandle fontFile = ...
-2
votes
0answers
14 views

Android unity Build error [closed]

i add the admob in my unity project i got this error Error building Player: Win32Exception: ApplicationName='javac.exe', CommandLine='-bootclasspath C:/Android/sdk/platforms/android-21\android.jar" ...
0
votes
1answer
33 views

android canvas rope swing

I'm creating the code, where a player swinging on a rope for the moment I got this double angle = Math.atan2(player_y - center_y, player_x - center_x) - Math.atan2(end_y - center_y, end_x - ...
1
vote
1answer
28 views

libgdx continuous movement while touch and hold (even after jump)?

So, I have these buttons where I have implemented a method to handle 'touch and hold' (without polling). If the player touches and holds the walk button ..it will keep walking till the button is ...
2
votes
1answer
32 views

OpenGL ES God Ray Precision error

I have encountered the following (i think) precision error. (missing link need 10 rep) My source of inspiration was: (missing link need 10 rep) On the PC everything works fine, but on android it ...
0
votes
1answer
31 views

Marketing PC/Android 2d Physics Game

I've been working on a game for couple years now, its fairly original, has definite potential within an indie market, and appeal for the masses also. I want to deploy on Android and PC, green-light ...
0
votes
0answers
32 views

Capture what is Rendered in OpenGL

Im Making an android Game with OpenGl ES, I Want to capture what is rendered onto screen By FloatBuffer and save it for later use, For Example If this is the OutPut: I want this for Result: How ...
1
vote
1answer
37 views

Playing with hashmap in drawing

I'm developing a game in Java for Android, using LibGDX. In my render(), between the batch.begin() and batch.end() I'm running through all the game objects and draw them. Every game object is stored ...
0
votes
0answers
31 views

NullPointerException in android.app.Activity.onCreate(android/app/Activity.java:874)

I'm trying to get libGDX 1.6.1 to run on Android via Ruboto. So far, I: Generated a new libGDX app using the app generator Got the desktop app to run (Java) Got the android app to run (Java) ...
1
vote
0answers
39 views

Libgdx performance on old devices

I'm developing a game in Java for Android, using LibGDX. I'm using Nexus 5 to test my game most of the time and it works great (Minimum FPS it gets is 57 out of 60). Recently I ran my game in Galaxy ...
0
votes
1answer
26 views

How to send dynamic data to a vertex shader OpenGL ES 2 Android

I'm very new to Android development and OpenGL ES 2.0. I have been working through a book called "OpenGL ES 2 for Android A Quick Start Guide" which has been useful, but at times I get a bit lost as ...
1
vote
1answer
41 views

Android OpenGL EGL context lost

I'm developing simple Android game in OpenGL ES 2.0 and the development stage is getting closer to publishing game on play store, but I'm still unsure about EGL context behaviour on different devices. ...
1
vote
1answer
61 views

Developing an iOS/Android game with the free Unity license - feasible?

I recall, when I looked up the Unity license comparison page several months ago, seeing that some iOS/Android features were disabled for the Free license. However I can't seem to find that page now, ...
1
vote
1answer
68 views

What size should i use for my game design?

i am currently working on a android game by using libgdx and i am designing graphics with ps for it. I want my game looks the same quality for different screen sizes but i dont know in which size ...
0
votes
1answer
50 views

Android multiplayer via bluetooth [closed]

How do I transfer game commands between 2 android devices via bluetooth first of all is possible to do this??If possible then someone please help in doing so.Thank u
0
votes
1answer
19 views

ETC1 Performance Problem Android

I wanted to support etc1, because it shoul improve the performance and loading times, but somehow its worse than using normal png files. I'm using Mali compression tool with seperate RBG pkm texture ...
5
votes
1answer
242 views

Why does flipping 1 texture region cause an identical texture region to also be flipped? (libGDX)

Sorry for the bad title. I didn't know how else to explain it. The following is a portion of my code: public class AssetLoader { public static TextureAtlas spriteSheet; public static ...
1
vote
1answer
29 views

Unity: Slow deployment to Android devices?

From the time I hit "Build & Run", I wait 2 minutes (each) for Unity 5 to push to two different 'Droids. Fresh project, one script to generate a simple mesh, and no other assets. I am deploying ...
-2
votes
1answer
64 views

Porting SDL OpenGL Game to Android and IOS

I am currently learning OpenGL (3.0+) with C++. I am using SDL for input handling, window creation, etc., GLEW to use OpenGL and call OpenGL Functions, and GLM for OpenGL Math stuff. If I fully ...
0
votes
0answers
28 views

Cocos framework gives large Android builds than cocos2d-x

This question is regarding Project Architecture and workflow. I have an installation of cocos2d-x and Cocos Studio with Cocos Framework ( version 3.6). I carried out different build tests with hello ...
0
votes
0answers
8 views

Unity - Eclipse Error :Failed to receive dispatch signal. status=-11

I develop game . This Game run directly in unity but it export to Eclipse this error : channel UnityPlayerNativeActivity (client)' ~ Failed to receive dispatch signal. status=-11
0
votes
1answer
33 views

AssetManager proper usage in libgdx

I am a beginner in libgdx and I am coding a simple game. This game is like a word puzzle where each letter is a texture. Before loading the first level I need to load into memory 26 textures, one for ...
3
votes
2answers
48 views

LIbgdx android app remove fullscreen and show titlebar

I am developing an app using libgdx and i dont want the app to go fullsceen and i also want to show the title bar but the app goes to full screen and hides title bar instead of all efforts. here is ...
0
votes
0answers
19 views

How can I get float values using glReadPixels? [Android NDK es3.0]

c++ code: float* data = (float*)malloc(texWidth*texHeight*sizeof(float)); // or GLfloat float* result = (float*)malloc(texWidth*texHeight*sizeof(float)); // or GLfloat for (int i = 0; i < texWidth ...
0
votes
1answer
125 views

How do games such as aa Game have high levels in the structure of their code [closed]

How do games such as aa Game have high levels in the structure of their code? I mean if we want create a game with high levels, should we create and use a class for each level? I do not want code from ...
0
votes
0answers
79 views

OpenGL - Make two images blend together

I have 2 images that are .png and they mix together, The problem is that one overwrite the other. I know that the draw order matters, but In that case I should redraw the icons 2 times ( there is a ...
1
vote
0answers
40 views

Efficient Collision detection for polygons (fleet) in an RTS

I'm trying to make an RTS for android using libgdx. I would like to have collision detection to be able to detect ships inside the range of weapons and collision between my bullets and the ships. So ...
0
votes
0answers
28 views

Issue with texture mapping on a spehre using opgengl es 2.0

I have a problem to calculate the right UV coordinates. I'm calculating the sphere by subdivate a ocathdron. What did I do wrong? Calculate UV Points for the texture: private ...
0
votes
0answers
27 views

Sprite drag drop andengine

How to drag an andEngine sprite anywhere on the phone screen? I have written this code in onAreaTouched function of IOnAreaTouchListener interface which is implemented in my activity, but its not ...
-3
votes
1answer
45 views

Unity Licensing

I'm sorry if this gets asked a lot but google gives up answers from back in 2008 and all sorts so could somebody please clear up a couple of questions for me please. I want to make 2D games in ...
1
vote
1answer
32 views

Java - Trouble with recursion and rectangle placement

I am using Android API's and using the RectF class for rectangles. I have a list of blocks that are on the screen at one time. Each block is given a random position, and then I go through all of the ...
0
votes
1answer
48 views

Camera.unproject(Vector3) method is not working in libGdx

I know the touch postioning in libGdx uses OpenGL, making 0,0 the bottom left corner while the camera uses the top left corner as 0,0. I did some searching and found this SO question that specifies ...
-1
votes
1answer
17 views

Sound isnt playing in Game Maker Studio when interacting with object

Im making a small game in Game Maker Studio. I have a piece of code that moves the player to the next room when he touches obj_star: this works. I have another line that tries to play sound_collect ...
0
votes
0answers
37 views

How to draw my android Hexagons in a grid?

I am trying to create a hexagon grid using the Android ’Canvas’ package. I have a working ’Hexagon’ class that when used in a view will draw a single hexagon on screen. The problem is that I need many ...
0
votes
0answers
132 views

Using Cocos2dx with Android Studio

Has anyone got Android Studio to work with Android Studio? I can get the generated project to work with proj.android, and add the NDK path to local.properties but I can't get it to rebuild after I ...
-1
votes
1answer
54 views

What is the best way to send/receive data about user coordinates and other properties?

For example If I have 2 users, and each of them have an object, and that object has: x coordinates, y coordinates, angle, state, and other properties... I use java let'say the game changes at 30 ...
2
votes
1answer
46 views

[Libgdx]Screen not rendering after restarting game

I have a strange problem while using the libgdx library Game works fine on the initial launch on Android, but after that restarting game does not render the graphics on the screen properly. It is a ...