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

learn more… | top users | synonyms

0
votes
1answer
147 views

Download and open an zip file ingame on unity for android

I would like to know if it is possible to have a game that would download a rar or zip file from a website and extract it to the internal storage for use, and if it is a good option since i have to ...
0
votes
1answer
402 views

LibGdx efficient data saving/loading?

Currently, my LibGDX game consists of a 512 x 512 map of Tiles and entities such as players and monsters. I am wondering how to efficiently save and load the data of my levels. At the moment I am ...
0
votes
1answer
68 views

Is there a way to use the RGB channels of a texture as the alpha channel when applying multitexturing using OpenGL ES 1.1?

I have been trying to get texture compression using ETC1 (specifically PKM files) working for some time now. I am trying to do this without having to upgrade to OpenGL ES 2 so I have been using ...
1
vote
0answers
69 views

Android: Hardware Scaler

I was reading through this: using-hardware-scaler-for-performance and am a little confused by it. It says all you need to do to invoke the scaler is to set it like so: surfaceView = new ...
0
votes
1answer
179 views

Cover Screen with Snowing Effect in Libgdx

Oddly enough I cant find clear instructions on this theme (I only found rain and the method is very particular) so I ask, how do I implement a whole-screen snow-falling effect? The methods i can ...
0
votes
0answers
85 views

Drawing and scrolling paths performance problem

Hi I'm doing and endless sidescroller game where the terrain looks like a tunnel which is infinite. I managed to randomly generate the tunnel using this code: protected void createPath(){ path = ...
0
votes
0answers
103 views

SurfaceView.Callback.surfaceDestroyed is called too early in Android

I'm making a simple animation application. Everything works as planned, except one little detail: About 50% of the time, exiting the application (Home or Lock button), makes the Logic throw a ...
-1
votes
3answers
1k views

Collision between sprites in game programming?

I've since just started coding for an android game using eclipse. I've read Beginning Android Game Programming and various other e-books. Recently, I've encountered a problem with collision between ...
1
vote
1answer
43 views

How to make the images appear in a specific location? [closed]

How can I draw a sprite in a specific location of the screen using native Android 2D graphics API? The image should stay in the location specified.
0
votes
1answer
101 views

Which texture do I bind to when implementing multi-texturing?

I have been having some issues getting multi-texturing to work using OpenGL ES 1.1. I have two PKMs - one with RGB's and one for alphas and I am trying to combine the two as below: int ...
2
votes
1answer
355 views

Android LibGDX game: Choosing starting activity

I am making a Android game with LibGDX (using ADT eclipse bundle). How do I choose the default activity to launch when the user opens the app. I set the project up with the LibGDX setup GUI, and I ...
0
votes
1answer
71 views

How to animate two interacting objects

I'm not very familiar with animations but as far as I know, most of the animations are done frame by frame. For example animating a character walking etc. However, let's imagine this scene: There's ...
1
vote
2answers
123 views

In Android, is saving game data in a binary file a good approach?

I am nearly finished with my Android game, but I want to make sure my save format is good. I am working on a fairly large game, so data such as high scores, stars, etc. are stored for around 80 ...
0
votes
0answers
124 views

Limiting Rendering in my game loop (Not Game Updates)

My Gameloop (code below), limits the game updates to 60 ticks per second. However, it renders as fast as the device on which it is being run can handle. I'm using a fixed time step in my game and I ...
2
votes
2answers
130 views

how do I create a moving type of block like in Mario[box2d]

I want to create a block which only moves up and only when hit from below. I am trying out a distance joint and I read it can be used as a spring, is this the correct solution? the way I have tried ...
22
votes
7answers
16k views

Packaging HTML5 games as applications for iPhone/Android [closed]

Is it possible to package HTML5 game for iPhone and Android as an application or does it have to be accessed through a browser?
-1
votes
2answers
94 views

How to implement “move to touch location” function?

What is the formula/logic to implement moving an object towards a TOUCHED location. I want character A to move to my finger and it must be accurate. Here is what I have tried so far: @Override ...
11
votes
4answers
1k views

Side scroller terrain generating and scrolling [duplicate]

I am creating a side scroller game for android devices but I encountered a problem. The game looks like this: The black dot is a player. Player's x doesn't change, only the y does. When the player ...
1
vote
0answers
132 views

How can I display an image larger than the screen and allow the user to scroll to see more? [closed]

I am new to development and trying to understand my options. I have found no info or threads on this idea so I was hoping some of you folks could weigh in. When developing for Android, I know that ...
-1
votes
1answer
56 views

Game slow with older phone [closed]

I've made a game using libgdx. On m'y HTC One X, the game works good, even if there are some lags but only at the beginning. I wanted to try it on an older phone (well a less powerfull phone), a ...
0
votes
1answer
130 views

Parse and iterate over SVG path

I need to parse a SVG path expression like m8,295c-4,-292 441,-291 446,-26c5,265 440,263 442,-9 and have a way of iterating over it in [0 ... 1]. I looked into Apache Batik but it doesn't seem to ...
3
votes
2answers
13k views

How to move gameobject with touch on Android

I'm trying to make a game where you control a character via touch on Android devices. The player will have two degrees of movement. When you touch the touch screen and move your finger, the game ...
2
votes
2answers
208 views

How do I make a puzzle piece move smoothly between locations?

I'm building a 2048 clone to sharpen my Libgdx skills, but I don't know how to ease a tiles between board locations. When I slide my finger, the tile moves rather swiftly. How I can make the movement ...
0
votes
0answers
83 views

Level Select World Map with layers of images for score and completion

I'm working on an android game that will have a "world map" for selecting which level to play. Some examples of other games that implement what I'm trying to do are: Angry Birds, Kingdom Rush, and ...
0
votes
1answer
43 views

How does one go about offering a mobile game, or offering all in-app purchases to backers?

I am planning on trying to get my android game kickstarted. Of course, it's too early in development, and I will wait on until 60% done to do the kickstarter. Some of the rewards I am hoping to give ...
0
votes
0answers
170 views

Android Proguard with Unity3d return error code 1

I am using the proguard 4.11 with the Unity 3d In my project , I have include the unity-classes.jar in my libs folder When I generate the apk , it gives the following exception [2014-05-03 ...
1
vote
1answer
337 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 ...
1
vote
3answers
352 views

Algorithm to zoom a plotted function [closed]

I'm making a game in android and I need plot a function, my algorithm is this: @Override protected void onDraw(Canvas canvas) { float e = 0.5f; //from -x axis to +x evaluate ...
20
votes
5answers
5k views

Why is an engine like Unity3D emphasized over a native library like OpenGL for beginners?

I am just a beginner in 3D games, my preferred platform is Android. I posted a question in some other forum about "What to use: OpenGL or Unity3d?" They all emphasized Unity3D and using its built-in ...
0
votes
1answer
115 views

Game Taking too long during render cycles [closed]

Firstly, I'm not asking anyone to read my code. It is only posted as a reference just in case you want to. I am asking for general tips on how to get my game running at higher FPS on android, for ...
7
votes
3answers
6k views

Advantages and disadvantages of libgdx [closed]

I've been an android developer for a while and am thinking about getting into gaming. While looking for a game dev framework, I thought libgdx provides very friendly documentation and functionality. ...
8
votes
2answers
1k views

Java code for client-server game on Android

I have developed a game on Android. Now I want to play it on wifi or 3G. I have game packets which I want to send form client (mobile) to server then to another client (mobile). I don't know how to ...
0
votes
0answers
87 views

What are alternative options for monetizing android games in Google Play Store?

I unfortunately live in a country that is not supported for Merchant accounts on Google Play. I wanted to provide DLC content for a game that I have been working on and I wanted to use Play's in-app ...
0
votes
1answer
73 views

my movement is working good on keyboard but on android its not

So basically here is what my movement is like for keys: key down if (keycode == Keys.LEFT) { mishi.getAcceleration().x = -13; } key up if (keycode == Keys.LEFT) { ...
0
votes
1answer
243 views

Cocos2d-x cross platform development

I want to make a game with my friends on iOs, Android, WP operating systems. We decided to use a cocos2d-x and develop the core of the game on C++. What will be the right way of developing so that we ...
2
votes
2answers
516 views

android game development using unity 3d [closed]

I want to learn android game development. I dont have any programing knowledge. So should I learn JAVA and eclispe to develop games for android. Or should I learn Unity 3d. And is knowledge of java ...
0
votes
0answers
72 views

Threading in Android OpenGL ES 2.0

Background I've encountered a strange issue when testing my level-select screen. I have 20 levels and display the 'select buttons' for them in 2 rows of 10 (I did this rather than display 4 rows of ...
0
votes
1answer
192 views

Two issues with testing LibGDX on Android

1) When I test my game on desktop it is 100% fine. When I test it on my Nexus 7 physical device, it is the same except the backgrounds have no color. For example my splash screen has a greenish ...
1
vote
1answer
191 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 ...
2
votes
1answer
101 views

How to get a Coordinates of a 3D Object in Android

How is it possible to click on an area of a 3D Model (.obj-File) for example a cube, where you can get different Events of the six sides. For Example the orange area of the picture gives me a value of ...
0
votes
1answer
289 views

Should I render all of my HUD views to a single SurfaceView?

I'm using a SurfaceView and canvas to implement a game HUD, title screens etc., by overlaying standard Android view widgets over my SurfaceView. This works reasonably well and maintains an acceptable ...
0
votes
0answers
73 views

How to play music across several Android activities

to make it simple: I am creating an RPG/MonsterParty styled game, and I really could use the help of laying out the framework of it. I've looked into game-engines, but from scratch seems the best ...
0
votes
0answers
47 views

setChaseEntity freezes or jitters the AnimatedSprite

I'm trying to implement setChaseEntity method in a physics based app. I wrote the below code which has an animated sprite ans as the player. The player is movable and it can jump. When i try to focus ...
4
votes
6answers
3k views

What is the average team size for mobile games like these? [closed]

I know that it is maybe too broad question but please give me at least some guidance. What is the average team size for mobile games like in ...
5
votes
2answers
1k views

Will Google Play Game Services allow turn-based gameplay?

Will the Google Play Game Services multiplayer allow (turn-by-turn) gameplay like DrawSomething?
2
votes
1answer
2k views

Android OpenGL ES RENDERMODE_WHEN_DIRTY implementation

I am trying to understand RENDERMODE_WHEN_DIRTY so that I could save battery life wherever possible.. I made this sample application so that GlSurfaceView is updated with random color only when the ...
0
votes
1answer
86 views

Player doesn't jumps in Box2D implementation [closed]

Well, i'm trying to learn andEngine. I was able to successfully implement the move functionality for the player. Now, i'm trying to make the player jump using Box2D. I referred few online tutorials to ...
0
votes
0answers
61 views

Gideros Repeating and Clipping Background

I want to have a background with a repeating x-axis, that can be moved horizontally. What I have so far: local background = Texture.new("parallax01.png", true, {wrap = Texture.REPEAT}) local shape = ...
2
votes
1answer
206 views

How do I determine a device's default orientation?

I am developing a game with accelerometer controls. This works well on all the mobile phones I've tested it on. However, when testing on a tablet, the y and x axes are reversed, presumably because the ...
2
votes
1answer
190 views

Accelerometer based games smoothness

Take Doodle Jump and other games that rely on the accelerometer. The movement of the character is very smooth and I have no idea how they implemented it. I've seen a number of SO/GameDev/forum ...