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

learn more… | top users | synonyms

2
votes
3answers
212 views

How do I access a Unity class from an Android Activity?

I have made my own C# classes in Unity. How can I access them from the Android Activity that starts the UnityPlayer? Example: I have a C# class called testClass in Unity: class testClass { ...
2
votes
2answers
222 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
97 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 ...
1
vote
1answer
61 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
217 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
votes
2answers
108 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 ...
0
votes
1answer
891 views

How do I set up Unity for Eclipse?

I want to use Unity on Android. How can I integrate Unity with Eclipse? I searched this site and various forums, but found nothing useful.
20
votes
5answers
6k 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
183 views

Animations / OpenGL (ES 2) in game menu

(I am specifically asking for Android) If you look at Angry Birds (and in fact many other games), you can already see a lot of animations & effects going in the main menu and in other places even ...
0
votes
1answer
118 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 ...
0
votes
1answer
176 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 ...
0
votes
0answers
94 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
77 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) { ...
2
votes
2answers
791 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
76 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
271 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 ...
2
votes
1answer
104 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
0answers
50 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 ...
0
votes
0answers
97 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
1answer
91 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
67 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 = ...
-1
votes
2answers
453 views

Publish android game only for 800 x 480 resolution in portrait mode

I have developed a game in libgdx. I worked for long and after finishing, I found that the game runs perfectly only on devices with resolution 800 × 480. I found this solution: ...
0
votes
2answers
164 views

OpenGL ES 2 jittery camera movement

First of all, I am aware that there's no camera in OpenGL (ES 2), but from my understanding proper manipulation of the projection matrix can simulate the concept of a camera. What I'm trying to do ...
0
votes
1answer
104 views

How can I determine which square in my memory game was pressed?

I want to develop an simple memory game on Android. The memory game have squares like the picture below. How should I determine which of the square is pressed? Should I use image buttons? Personally ...
0
votes
0answers
64 views

Swing and LwjglAWTCanvas

I use LwjglAWTCanvas in my jFrame. I want to load textures on some swing event(I did it from postRunnable in order to get OpenGL contex). final LwjglAWTCanvas hexagonEditorCanvas = new ...
1
vote
0answers
587 views

Resize the Texture Region (parallax background) to fit my screen size in libgdx

I am using libgdx to make a running game. I am using vertical parallax background. I have successfully implemented parallax background many times. But for this game, I want my Texture region to fit my ...
0
votes
1answer
428 views

How to Integrate Unity with Google Play Game Services for iPhone and Android games

I want to integrate Google Play Game Services for Apple's iOS and for Android. How can I do this efficiently?
2
votes
1answer
259 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 ...
1
vote
1answer
203 views

Libgdx. Converting Screen Click Coordinates into World Coordinates for 2D Game

I'm using the InputHandler's touchdown method. It gives me my screenX and screenY. Is there a simple way to convert screenX and screenY to world coordinates? By my understanding, InputHandler returns ...
-3
votes
1answer
179 views

Games with simple graphics like Dots or 2048? [closed]

I want to try making an Android game, but I'm bad at making graphics. I want to make a game with very simple graphics and I'm looking for inspiration. What are some games like Dots or 2048?
0
votes
0answers
73 views

Slowdown in sliding background with Libgdx

I´m new with libgx and i have a basic question. I want an background like an image that repeats indefinetely, and moves down. I did with 2 images and it worked, but the problem is that is very slow. I ...
1
vote
1answer
110 views

How to poll input for a gui in libgdx?

Ok, so my question is simple. How do you poll input with a GUI class without it affecting what's underneath the GUI? So suppose you have an RPG game with a gui for the d-pad and other controls: ...
0
votes
0answers
108 views

Moving objects smoothly, bad perfomance

I just finished developing my mini-game on Android and I got some questions about perfomance and generally "how to": If I have 25+ objects on the creeen (just a polygon with 7-8 angles) its starts to ...
5
votes
1answer
1k views

Why doesn't my android application rotate when I rotate my screen

I am building a game in LibGDX and the game screen orientation is in landscape. I want it to stay in landscape but I still want the user to be able to flip the device onto the other side and the ...
0
votes
0answers
56 views

Andengine how to change the onscreen control directions?

I am creating a game using andengine. I am using digital onscreen control to move a ball (sprite) in maze. I am able to move the ball but now I want the movement such that if I move the joystick knob ...
2
votes
1answer
453 views

Do I need a company name to publish on Google Play?

I'm going to upload my Android mobile game on Google Play. But it seems like all games are developed by companies(such as Zynga, and King) and I don't see individual's names as developers. Do I need ...
0
votes
1answer
814 views

LibGDX cannot save to internal file

I want to save the state of the game in a file, so I can read it at the next start. The Problem is, that I get a exception, if I try to save something internal. If I try to save it local all work ...
0
votes
0answers
44 views

Broken screen when running empty AndEngine project using LimitedFPSEngine

I am new to AndEngine and I am following the steps in this tutorial: http://android.kul.is/2013/10/android-game-development-tutorial-part-3.html. In summary, it is a simple getting-started project ...
0
votes
0answers
51 views

Apply impulse to ball to a fixed height Jbox2D android

I have to hit a ball to a fixed height repeatedly as shown in the following image. This game is similar to 1983 Hitit The difference is the hitting y axis will be variable. I wanted to hit the ...
0
votes
1answer
349 views

How do I handle collision response between many different types of game objects?

I am looking for a way to avoid the dreaded switch or if/else scenarios between numerous game object types when a collision takes place in a game. For example: You have a list of game objects which ...
1
vote
2answers
495 views

Why is mesh baking causing huge performance spikes?

A couple of seconds into the gameplay on my Android device, I see huge performance spikes caused by "Mesh.Bake Scaled Mesh PhysX CollisionData" In my game, a whole level is a parent object containing ...
0
votes
0answers
428 views

Cross-platform ad-hoc local mobile multiplayer

I want to implement ad-hoc cross-platform (iOS, Android, and PC) device discovery for local multiplayer, like this scenario: http://www.youtube.com/watch?v=csXYZf2vGdE Multiple players, each with ...
1
vote
0answers
67 views

How do you calculate the rate of rotation using the accelerometer values in Android for a particular axis?

I am developing a simple game which involves a character moving up and down only along the Y axis. Currently I am using the accelerometer readings to change the Y velocity of the character. The game ...
0
votes
0answers
112 views

How can I use a Seekbar as a brightness slider?

I am using the GLSurfaceView Renderer. I want changes to a seek bar's progress to increase the brightness of a GLSurfaceView proportionally. How do I apply a color matrix to a GLSurface view? Is ...
0
votes
1answer
189 views

Android AndEngine creating a body behind the sprite exactly

I am using AndEngine for Android. I created a body, but it is not behind the sprite as I wanted. Body.setTransform(Sprite.getX()/32, Sprite.getY()/32, 0); This is ...
1
vote
0answers
219 views

Android and OpenGL, single thread vs double thread

I'm trying to optimize my Android OpenGL ES 2.0 application, and I find myself being CPU bound. After googling, I've found this, which suggest to use a thread for updating objects, and a thread for ...
1
vote
2answers
71 views

How do I inline images between text in a Table?

I have a Table and a Label with wrapped text. I want to display some images in-line with the text. For example: This is an image -IMAGE_HERE-, and now some more text showing, yet, another image ...
2
votes
2answers
360 views

Adding touch/click event to a bitmap in android

In my android game, there is a surfaceview which has 36 bitmaps drawn on it. I want to change the bitmaps when they are touched. Is there a way implement touch or click event to the bitmaps ? Adding ...
1
vote
0answers
345 views

How can I transform a group of objects in libGDX?

I'm new in LibGDX. I created group with actors in show method and add listener (where i calculate rotation matrix) and want to rotate all actors from group with ...
8
votes
3answers
2k views

Is a separate thread for game loop compulsory for simple games?

I am new to game development. In order to learn I am recreating this game on android platform. You can observe the game-play video at the above link. It is a simple game. I have read a lot of ...