Operating system for mobile devices. For non-developer questions, see http://android.stackexchange.com

learn more… | top users | synonyms

1
vote
1answer
220 views

Pipe connection game algorithm - Java/Andengine

I am creating a game based on Pipe Dream/Pipe Mania using java/andengine for android. I have a square grid of tiles each representing a type of pipe. The player needs to swap tiles to connect the ...
0
votes
1answer
98 views

Alpha Value at 0 Shows Black for Android Canvas Bitmap

There have been a few questions similar to this but none seem to give a straight answer. If I am creating a Bitmap from a .png image and want to set a color (i.e. true pink) to transparent, the color ...
0
votes
0answers
394 views

Dragging an object by touching on Android

I am trying to move and object by touching it and dragging. I am testing it on my Samsung Galaxy SIII. I have used the following code. For some reason it moves faster than my finger. It should always ...
0
votes
1answer
109 views

Load all bitmaps at once or only when needed?

I am starting to get a pretty hefty amount of bitmaps in my 2d game for android. I load them all in 3 colors to save some memory but the thing is, I load all of them when "Start game" is pressed, even ...
2
votes
2answers
124 views

What are the pros. and cons. of different representations a custom geometry format for a mobile based engine?

I am trying to create 3D model importer for my mobile based engine. These are what I am considering: Convert .obj file to text based structure like JSON or custom. So, basically, convert .obj ...
0
votes
1answer
399 views

How can I save an XML file with Unity on the Android platform?

I am writing a game that has a save function which looks like this public void Save() { System.Xml.Serialization.XmlSerializer ser = new ...
1
vote
0answers
480 views

LibGDX RPG walking animation [closed]

I've been trying to nail down a walking animation with libGDX. I'm making an RPG with the character that can move up, down, left, and right. I have this movement in a spritesheet. I've been ...
0
votes
1answer
80 views

Android Game Development - Thread+Handler or AsyncTask? [closed]

I´m starting in Android development and I would like to know what is recommended when creating a game. Should I use Thread with Handler or a AsyncTask to perform the game calculations, update ...
2
votes
4answers
171 views

Implementing frame-independent friction

So I'm not looking for anything realistic like a physics engine, just want to say that first. I'm working on a simple top-down game and I'm trying to get friction working with deltaTime. This was my ...
7
votes
4answers
309 views

Why does my game display the wrong “required Android version” on Google Play?

I'm porting a Unity game to Android, and I've set up the "Minimum API Level" in the Player settings to "2.3.3 (API level 10)". However, on the store, it says "Requires Android: 1.6 and up". On the ...
1
vote
1answer
235 views

How should I generate the board for a match-3-style game?

I am trying to create a "match 3" game. I'm stuck figuring out a good algorithm to fill up the game board. My game's board is 8x8. EDIT: A few things: The board should always be solvable. for ...
1
vote
3answers
153 views

Inconsistent sprite velocity?

I'm moving my sprites using the following formula: Code that I'm using (Only shows sprite's X position being calculated but Y position is also being done) spriteGridX = 240/480; //I start out with ...
1
vote
1answer
181 views

How can I get my Flash game to scale to all mobile device screen sizes?

I want my application to automatically scale its size depending on the screen size. I want my application to fit any screen size automatically. I am making my application for mobile devices, how can I ...
1
vote
1answer
124 views

Max Row and Col for Animating Sprite in Andengine

I want to animate a Sprite in Andengine , I have used the following this.mSnapdragonTextureRegion = BitmapTextureAtlasTextureRegionFactory.createTiledFromAsset(this.mBitmapTextureAtlas, ...
1
vote
1answer
170 views

Is it possible now to make something for android in Unity3d without buying any licenses?

I was just talking to a game dev who said its possible, that it involves downloading the android sdk and few other things. If this is possible can someone tell me how? Also is it possible to build a ...
1
vote
1answer
129 views

How to move a Entity without moving its children in AndEngine?

I have a Entity in AndEngine and when I move it, all child move together with it. Which is great. But, sometimes, I need to move it without moving its children. Is it even possible? And, if it is, how ...
0
votes
1answer
106 views

How can I get my Android camera system working more like Google Earth's? [duplicate]

I'm implementing a touch screen interface whereby the user dragging their finger on the screen will rotate the camera in a sphere around the central point. My code works well for the horizontal swipe ...
0
votes
0answers
76 views

Coordinate system of android.graphics.Camera?

I asked this question before in StackOverflow.But I have not found any answer. I have to use Camera to draw some things in Canvas.But I can not detect that coordinate system of Camera is Right hand ...
1
vote
0answers
72 views

How to load all textures at startup in my game?

In my Android 2D game every level uses the same textures. Currently all my textures are loaded into memory in the onSurfaceCreated() method of my GLSurfaceView.Renderer when a level is choosen by ...
1
vote
1answer
102 views

Error compiling irrlicht android using ndk in Mac

I'm new to irrlicht and I have started with irrlicht android port. I have made the following changes to android.mk file: LOCAL_CFLAGS := -O3 -DANDROID_NDK -DDISABLE_IMPORTGL -I./../include/ ...
0
votes
3answers
308 views

Will I have copyright issues making a mobile game based on an anime?

I have been wanting to create a mobile game based on some of my favorite anime. I want to know if using character images and names from those anime (even after giving full copyright credits and ...
0
votes
0answers
71 views

OpenGL ES Renderer, how to know if onSurfaceCreated has been called?

Obvious answer is to set a boolean to true, but that wouldn't consider recreation. I'll tell you what I'm doing, and what's my problem for bringing light to the question. So, I was working on the ...
1
vote
1answer
130 views

Augmented reality on Mobile platform - iOS

Is there a way that we can control the iOS device camera to an extent what colors it sees, what shapes it sees ? etc I'm speaking about the ability to read information before the image is captured. ...
-1
votes
1answer
137 views

Beginning android games, 2nd edition engine

I recently bought the book from Apress and have worked my way through it, unfortunately, it seems to just be dealing with side scrolling games and not Zelda-like top down games. I was wondering if ...
0
votes
1answer
66 views

How to debug Android App Eclipse? [closed]

Ok. So while this isnt a programming question. I wanted to know how do people debug apps? How do you view log cat, and where these exceptions are thrown etc? And do I need to run the app on the ...
1
vote
1answer
216 views

Android Swipe In Unity 3D World with AR [closed]

I am working on an AR application using Unity3D and the Vuforia SDK for Android. The way the application works is a when the designated image(a frame marker in our case) is recognized by the camera, a ...
-1
votes
1answer
193 views

What's wrong with this Open GL ES 2.0. Shader?

I just can't understand this. The code works perfectly on the emulator(Which is supposed to give more problems than phones…), but when I try it on a LG-E610 it doesn't compile the vertex shader. This ...
0
votes
1answer
207 views

What Type of Options should be on the Game Settings Menu? [closed]

I have seen a post about the main menu options here: UI: Main Menu options for mobile games. What options should be listed? What do users want to see? But I want to know what kind of options ...
0
votes
3answers
347 views

Android : glowing/pulsing line/triangle

I would like to create a simple Android app using Opengl ES 2.0 that is showing a simple shape (like line or triangle) that is glowing and pulsing like Nexus X logo in this video : ...
0
votes
1answer
219 views

Feasability of mobile 2D multiplayer RPG game with interactive bitmap background

I'm looking to develop a 2D multiplayer RPG game for Android, with a bird's eye view similar to that of zelda/pokemon. The game is very simple in all ways since my intent is for thousands of players ...
0
votes
0answers
66 views

Physics don't apply on a unique body AndEngine

I am developing a game in AndEngine so far I managed to create everything I wanted for my sprite that was connected to a BoxBody. I was rotating it moving it everything was great. I wanted my ...
0
votes
0answers
18 views

How to promote an indie game on Google Play? [duplicate]

We're currently on the Alpha stage and searching through possible ways to promote our game. Hope you can help with advice.
0
votes
0answers
134 views

Basic Android game loop having issues

I've set up a very basic game loop that should draw a circle, run 100 times, then draw another. I also have a text field that should display how many times the loop has ran. However, the screen seems ...
1
vote
1answer
411 views

How to use mipmap in OpenGL-ES

I have recently entered in the OpenGL world. I am very pleased with the performance that I got with opengl compared to those obtained with a SurfaceView and its canvas. At the same time because of the ...
2
votes
1answer
97 views

Android Can't get two virtual joysticks to move independently and at the same time [closed]

@Override public boolean onTouch(View v, MotionEvent event) { // TODO Auto-generated method stub float r = 70; float centerLx = (float) (screenWidth*.3425); ...
0
votes
1answer
77 views

Game with changing logic

I'm planing to develop a puzzle like mobile game (android/ios) with a different logic for each puzzle. Say, for example one puzzle could be a Rubik's cube and another one a ball maze. Many more new ...
0
votes
1answer
204 views

Unity AddExplosionForce not doing anything

Recently I've started learning Unity3D. I'm working on a game as an exercise in which you control a space ship and have to dodge asteroids. If you feel like it's getting a bit too much you can hit the ...
2
votes
1answer
297 views

OpenGL slower than Canvas

Up to 3 days ago I used a Canvas in a SurfaceView to do all the graphics operations but now I switched to OpenGL because my game went from 60FPS to 30/45 with the increase of the sprites in some ...
0
votes
1answer
39 views

Android Live Testing

I am making a game for android and in it I am using sensors which are not available in the emulator. At the moment I am connecting my device and transferring the apk, then installing to test but that ...
0
votes
0answers
73 views

Ouya / Android : button mapping bitwise

I am programming a game with the Gameplay3d Engine. But the Android site has no gamepad support and that is what I need to port my game to Ouya. So I implemented a simple gamepad support and it ...
4
votes
1answer
182 views

Keep cube spinning after fling

So I've been trying to get started with game development for Android using Unity3D. For my first project I've made a simple cube that you can spin using touch. For that I have the following code: ...
1
vote
1answer
651 views

android: How to apply pinch zoom and pan to 2D GLSurfaceView

I want to apply pinch zoom and panning effect on GLSurfaceView. It is Image editor, so It would not be 3D object. I tried to implement using these following links: ...
1
vote
1answer
208 views

Why doesn't RGB565 lead to a smaller memory footprint on Android?

I'm using LibGDX for my game. I'm loading 9 bitmaps into memory at once using the AssetManager, about 512x512 pixels each on average. TextureParameter texParam = new TextureParameter(); ...
1
vote
2answers
121 views

Easy Method to Change Color on UI Elements

This isn't a language-specific thing as far as I'm concerned. I was wondering what may be a quick way to change the COLOR of a certain on-screen element such as a button and its associated text. I ...
0
votes
1answer
82 views

How do I load BSP files in Android?

I understand that Opengl directly cannot load BSP files. How would I go about loading them into my Android game?
1
vote
1answer
221 views

Mobile (bluetooth) connection to wiimote/controller [closed]

Looking to make a game for cross-platform mobile game. (Android, iOS, Win8) Playing with a controller is a pretty important feature. Bluetooth connecting with a Wiimote works, but there are a few ...
0
votes
0answers
660 views

Drawing and rotating bitmaps (with transparency) efficiently in Android

I just started making a game for Android and I'm already having some issues regarding performance. You can imagine the game as being some kind of Tower Defense game with a top-view, and the enemies ...
2
votes
2answers
228 views

Poor mobile performance when running from Eclipse

So after weeks of thinking my rendering code was bad, I accidentally discovered the following: Running my game on a Nexus S From Eclipse (Debug as -> Android application): 12fps From the device ...
0
votes
1answer
296 views

AndEngine: Painting on a canvas rather than composing image from objects

I'm trying to implement drawing a line with a finger, similar to a Pencil tool in image editors. From what I've found on AndEngine, it seems like the recommended approach would be to create a line ...
3
votes
3answers
489 views

How to make Box2D bodies automatically return to a initial rotation

I have two long Box2D bodies, that can collide while moving one of them around with MouseJoint. I want them to try to hold their position and rotation. Blue body is moved using MouseJoint (yellow) ...