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

learn more… | top users | synonyms

0
votes
0answers
13 views

Problem with Sprite not jumping off of platform (using rectangles for collision Detection)

When my sprite is on top of the platform, he stays on top of it, thanks to the rectangles I made for him and the ground he stands on. but when I click "jump" he does not jump most of the time. I need ...
1
vote
1answer
51 views

Android Game Slows Down

I had been developing a Maze Game which is dragging a bitmap down on the maze going on the finish line. on first my game response quickly on my onTouch and dragging and after couples of adding toast ...
-1
votes
0answers
40 views

Android Game Development [on hold]

I am new to android and I want to know which is the best way of developing 2d games for android? Is the best way using Canvas, ImageViews etc . Or is it better to use game engines like libGDX ...
1
vote
1answer
43 views

Move an object up while touch is active

I'm trying to move an object towards the top of the screen while the touch is active. This is my current code. When I am touching the screen, the object I'm trying to move just keeps it's place (and ...
0
votes
1answer
37 views

Different kinds of collision detection in Android

Are there any other ways to detect collision between two objects besides the bounding rectangle method and downloading another class to put into Android?
0
votes
0answers
25 views

Barycentric vertex coordinates in GLES 2.0

I have a certain set of polygons, which are stored in a vertex buffer and an index buffer. The polygons are textureless and normalless. The polygons are dynamic, their buffers get constantly emptied ...
0
votes
0answers
82 views

from where i should start with 3D games? [on hold]

I'm an android developer, I made several apps, but now I want to make games, 3D ones I want the game to be easily portable windows , etc. I've considered Java 3D library but it seems like its the ...
0
votes
0answers
14 views

How to make something happen when an image reaches a certain point on the screen in Android

I have an ImageView that moves across the screen, and I want it to trigger something that happens when it reaches a certain point on the screen. This is the code I used to make the image move: int ...
0
votes
0answers
12 views

BaseGameUtils / GameHelper onSignInFailed and onSignInSucceeded both called? [migrated]

I found a problem with my Google Play Game Sign-in during Alpha testing. It only happens when the user has an incorrectly cached password for their Google Play login. Here is what I mean.... When ...
0
votes
0answers
13 views

Google Play Game Services - Handling messages via p2p, host or no host?

I am developing a real time multiplayer game using Google Play Game Services. The underlying networking is done via P2P. Everything I read says I should still have a game host that sends out all the ...
0
votes
1answer
29 views

'Resetting' Google Play Games Services so app forgets it previously connected (so it shows confirmation screen again)

When I first integrated Google Play Games Services into my app, it came up with a 'confirmation screen', something like: App Name wants to connect to Google Play Game Services I don't recall the ...
0
votes
0answers
19 views

Making a Collision Detection for ImageViews

I'm trying to make a collision detection system for two ImageViews, but I can't seem to figure it out. I've tried doing several things from StackOverflow and other places, but they don't work. One ...
0
votes
1answer
23 views

Optimizing Draw calls in MonoGame Android platformer

I am working on a 2D platformer that is in the final stages of optimization. I have a few different devices for testing, and I am trying to get the best possible framerate on the weaker ones. On a ...
-6
votes
1answer
68 views

I want to show dialog in my Flappy Bird clone game [closed]

I have android Flappy Bird game . Now after game finishes i want to show an image in dialog box i dont know how to show dialog box as i dont have any activity. Would appreciate if anyone help me with ...
0
votes
1answer
22 views

Java Buffers and OpenGL ES 2.0 (Android)

I've been trying to come up with a good solution for preloading textures asynchronously, but in Android with OpenGL ES you cannot create a texture out of context. Would the proper solution be to load ...
0
votes
0answers
32 views

Is there any advantage in using sprite sheets in Cocos2d-X menus?

I am developing a game using Cocos2d-X 2.3 and Marmalade SDK 7.3.1 and I was wondering if there is difference between loading the icon images that will be used in my menu buttons from a sprite sheet ...
-1
votes
0answers
34 views

Looking for Open Source engine for building Real Time Multi-player Quiz games like Quizup,Quizlet [closed]

Any recommendations for Open Source engine for Real Time Multiplayer Quiz game like Quizup,Quizlet. Intended Platforms - Web,Android,IOS Game engine should have below features (may be some more): ...
0
votes
0answers
54 views

Perfect game loop [closed]

I've been working on development for an android game, and this is the game loop I have so far: @Override public void onDrawFrame(GL10 unused) { // Use this structure to set constant dt on a ...
0
votes
0answers
22 views

Good books on Android OpenGL game development [closed]

I don't know if opinion based questions will get down voted here. But anyways , I wanted to know some good books on Android game development with OpenGL. I have some intermediate knowledge on Java ...
0
votes
0answers
24 views

Puzzle Game on Android using canvas with matrix

I'm making a slide puzzle game on android. I have handled the gestures and tranaslate the matrix that holds the pieces succesfullly, and I have made the logic when the pieces get on the border of the ...
0
votes
0answers
20 views

Multiple time initialize same texture

I am newbie to libgdx gaming, i have a problem to initialize the multiple images having same texture;try to do using array and i could not do,as i am very new so can help me sort out. private Image ...
0
votes
1answer
47 views

Is it possible to a create an Android game that uses the built in keyboard?

I know the keyboard is probably built into the Android OS and I have a simple game idea, sort of like a word game, but is it possible to create a game that uses this in the game itself?
0
votes
1answer
48 views

The sprite will not move in libGDX

When I ran the android application, The sprite image will not move when I press the input keys. I followed a tutorial based on input keys and wish to know what's wrong. Can anyone see what's wrong? ...
0
votes
0answers
58 views

Rotate object with accelerometer?

I'm making a game where you control a platform with balls falling ontop of it, and you have to balance the balls and prevent them from falling off. I'm currently using a mouse to control it with this ...
0
votes
0answers
40 views

Unity Android Unable to convert classes into dex format AdMob

I'm a beginner Unity programmer (school-age), so I don't know that much about the system. On its own my app compiles fine, but when I implement the AdMob SDK (Google) 2.1, I have the following error ...
0
votes
0answers
27 views

Android - OpenGL ES 2 - Cube with different texture in each side

I need to create a 3d cube, with a different texture on each side. Here is my cube class, which my other classes extend: import java.nio.ByteBuffer; import java.nio.ByteOrder; import ...
0
votes
1answer
35 views

Android - 3d view with object picking, dynamid textures and camera changing [closed]

I need in an application to add a 3D viewport inside an activity, together with some other buttons. I need the viewport to allow object picking, so user can click on objects, dynamically changing ...
0
votes
1answer
44 views

How to change the Android NDK jni calls dynamically?

Some people are using NativeActivity for working with Android projects exclusively in C++, but this also carries some disadvantages, so I, like many others, decided that I'd use instead a Java glue ...
3
votes
2answers
99 views

Why are my Box2D wheels slipping on ground?

I have a car, set up in Box2D as a rectangle connected with two wheels using WheelJoints: The wheels are defined as follows: FixtureDef wheelFixtureDef = new FixtureDef(); ...
0
votes
1answer
53 views

If filled polygon cannot be drawn via libgdx ShapeRenderer , then what is the work around?

I know most of you would suggest me to draw a filled polygon by using combination of triangles and rectangles , but that is not possible for complex shapes . I want to basically draw a generic shape ...
0
votes
0answers
25 views

Cocos2d-x: Some CCSprites become invisible when adding child at runtime

I'm a newbie to Cocos2d-x v3.0, and recently I got this problem when I deployed my app in Android devices. First, my app ran well on window, then as I mentioned in the title, the problems happened ...
0
votes
1answer
64 views

What's the best way to save scores per level in android?

I'm in the middle of programming a tile based puzzle game, then i realized i don't have any good ways to save data. For the moment i'm using these long combined strings for sharedpreferences and i'm ...
1
vote
2answers
186 views

Efficiently detecting objects inside multiple radius

I would like to create a game for mobile that require to calculate multiple time by seconds which moving objects are in the radius of moving points. The game is highly inspired from Gratuitous Space ...
0
votes
1answer
68 views

Tilemaps and colour overlays

I am currently developing an isometric tile game for android. I am currently working on how I to handle rendering the tiles in an efficient way. So I was wondering about the possibility of using a ...
0
votes
2answers
94 views

Currently developing a game with Android SDK, should I switch to a game engine in future projects? [closed]

I am an android developer, and I've made several apps on the Google Play Store. I'm currently working on my first game, which is just a simple RPG for android, that I'm coding in java with the android ...
2
votes
1answer
67 views

How can I use imprecise accelerometer data for controls?

I want to rotate an object with respect to the phone's position. I use the accelerometer output to detect orientation: float roll = Gdx.input.getRoll(); float pitch = Gdx.input.getPitch(); float ...
0
votes
0answers
45 views

Chroma Keying Shader

I want to apply chroma keying shader for my application. For this I used GPUImage plugin. In that I found GPUImageChromaKeyingBlendFilter class to satisfy my needs. In plugin, ...
0
votes
2answers
192 views

How to change from 60FPS to 30FPS while keeping things smooth?

Here is my current game loop: final int ticksPerSecond = 60; final int skipTicks = (1000 / ticksPerSecond); float dt = 1f/ticksPerSecond; while(System.currentTimeMillis() > nextGameTick ...
0
votes
0answers
57 views

Vsync and Gameloops

I was about to publish my app but I tested it on a cheap Android tablet. It's anew tablet, but a cheap / low spec one. The game runs, but is pretty choppy. I'm made a discovery that quite surprised ...
0
votes
1answer
46 views

Does LibGDX abstract OpenGL ES away or can I still use my OpenGL ES knowledge?

I've been learning OpenGL ES, and am now turning my attention to using LibGDX. My main concern with LibGDX is, if needed, will I be able to apply my OpenGL ES knowledge to something if needed and ...
0
votes
1answer
52 views

How do I correctly destroy a MobFox ad?

Is anyone here using MobFox to display their Android app's ads? I was previously using the AdMob SDK but recently switched to MobFox and while it only took a short time to integrate it, there are a ...
1
vote
1answer
55 views

Touchable Hud with Actors in Libgdx

I am writing a Tower Defense for Android. Right now my LevelScreen contains a Background-Actor which is pan-able and some zones to buy Towers - after buying them you can upgrade them further. When you ...
1
vote
3answers
169 views

Reducing APK File Size by using JPG instead of PNG for game background images

I've just finished my (openGL ES 2.0 Android) game and it's almost ready for Alpha-testing. When I export the application to an APK File, the file is taking up 16MB and I would like to reduce this as ...
1
vote
1answer
78 views

Tiles touching all of same color check

I'm currently having a problem that has stopped my productivity for quite a while. I need to check if all tiles of a color is touching each other for each color like this: I have all my code for ...
1
vote
1answer
93 views

Problem to match font size to the screen resolution in libgdx

I'm having problems to show text on my game at same size on different screens, and I did a simple test. This test consists to show a text fitting at the screen, I want the text has the same size ...
0
votes
2answers
172 views

Android: How to create fluent animations by using bitmaps and ObjectAnimator?

I want a resized bitmap item to move over the screen into a house. This basically works, but the movement is not fluent and is stuttering. Since I always have to draw both the resized background and ...
0
votes
0answers
46 views

How to open another class by clicking on a button on libgdx?

I have a question about libGdx. I am making my own game, I have already made a splash screen and a main menu. I have made a button "Play" in my menu but I can't link it to my main game. however, I can ...
0
votes
0answers
73 views

Android OpenGL ES 1.0 - Glow/Bloom effect

I'm currently building an Android space fighter game which uses OpenGL ES 1.0. For several technical reasons, I cannot at this point upgrade to 2.0. I really want to add a "glow" effect to glowing ...
1
vote
1answer
29 views

XY Location scaling with varying density screens

I have a phone with resolution H=1280,W=720,Density=2 I have a tablet with resolution H=1216,W=800,Density=1.331 I drew a rectangle on my phone with corners Left,Top (-1.6,1.55), Right,Bottom ...
0
votes
1answer
56 views

facebook like for unity android

Is there a way to add a like button which links to my page for my android game which I made in unity. Any help would be appreciated.