Tagged Questions

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

learn more… | top users | synonyms

3
votes
1answer
159 views

Multiple weapons for android game

I am trying to make a 3D game for android using the Rajawali engine to render the 3D graphics and blender for designing my models(exporting as .md2), and I want my character to be able to change ...
0
votes
2answers
146 views

Make objects slide across the screen in random positions

I want to make an object appear randomly at the right hand side of the screen and then slide across the screen and disapear at the left hand side. I am working with libgdx. I have this bit of code but ...
2
votes
1answer
85 views

libgdx arrays onTouch() method and delays for objects

i am trying to create random bullets but it is not working for some reason. also how can i make a delay so the bullets come every 30 seconds or 1 minute???? also the onTouch method does not work and ...
0
votes
0answers
299 views

using Unity Android In a sub view and add actionbar and style

I exported a simple animation from Unity3D (version 4.5) in android project. With eclipse I modified the manifest and added another activity. In this activity I put a button that it makes start the ...
1
vote
1answer
42 views

How can I transform a Point2f with a matrix on Android?

I'm developing for Android and I'm using the android.renderscript.Matrix3f class to do some calculations. What I need to do now is to now is to do something like mat.tranform(pointIn, pointOut); So ...
2
votes
1answer
172 views

libgdx collision detection / bounding the object

i am trying to get collision detection so i am drawing a red rectangle to see if it is working, and when i do the code below in the update method. to check if it is going to work. the position is not ...
1
vote
1answer
78 views

LibGDX onTouch() method Array and flip method

How can I add this on my application. i want to use the onTouch() method from the implementation of the InputProcessor to kill the enemies on screen. how do i do that? do i have to do anything to the ...
0
votes
1answer
395 views

Is HTML5/WebGL performance unreliable on low-end Android tablets and phones?

I've developed a couple of WebGL games, and am trying them out on Android. I found that they run very slowly on my tablet, however. For example, a game with 10 sprites or so runs as 5fps. I tried ...
2
votes
1answer
89 views

Tips on how to notify a user of new features in your game

I have noticed a problem when releasing new features for a game that I wrote for Android and published on Google Play Store. Because my game is "stage-based" - and not a game like Hay Day, for ...
0
votes
0answers
39 views

bluestacks apk installment over terminal

I cant seem to install apks on bluestacks using the terminal (adb) right. I can make it appear on bluestacks but it immediately crashes. I already tested fully functional apps whoch work on other ...
0
votes
1answer
105 views

Resolution independent physics

I'm making a game like Doodlejump but don't know how to make the physics scale on multiple resolutions. I also can't find anything related to this on Google. Right now I'm scaling the game using ...
1
vote
1answer
335 views

Unity3D - Android pause screen - double click issue [closed]

I made a pause script for the game im developing for android. I added the script to the GUITexture I created and placed on the top right side of the screen.The issue stands at the part where if the ...
1
vote
1answer
81 views

libgdx draw issue and animation

it seems as though i cannot get the draw method to work??? it seems as though the bullet.draw(batcher) does not work and i cannot understand why as the bullet is a sprite. i have made a Sprite[] and ...
0
votes
0answers
42 views

Converting a WIndows Store App to Android

I cross posted this from SO I'm very new to Xamarin. I have a few published Windows Store apps and want to convert them to Android. I'm attempting to use Xamarin for this. I'm just using the free ...
0
votes
1answer
551 views

Unity3D : Pause Menu - Android

I am making a 2D game for Android. Almost completed the game but now I need a pause game option. I added a pause icon on the top right side of the screen. The icon is a GUI texture. What I did so far ...
0
votes
1answer
53 views

Phone crash when try to use vibration on Android

Im developing an app that when you click a button the phone has to vibrate, the issue is that the phone just chashes. Saing that I need permitions to vibrate. I've already set this permition in the ...
0
votes
2answers
122 views

libgdx - handling battery warning

I want to pause my game when the battery warning on Android pops up. How do I do this? I have a method that pauses the game but how do I call it when the battery warning pops up?
2
votes
1answer
267 views

Should Starting a Quick Game via Google Game Services be Iterated?

I have been following this tutorial for Google Play Game Services. I am a little unclear as to if the room matching algorithm should be looped or not. Can I just initialize this process once and let ...
0
votes
0answers
568 views

Posting to facebook from unity3d on iOS and android

I've made a game in unity3d for iOS and android. We have our own server to manage high scores and stuff like that. We'd also like to have the possibility post high scores to facebook, and also do ...
3
votes
1answer
1k views

difference between cocos2d-x vs cocos2d-js

I'm just moving towards native apps... A friend of mine told me to start with cocos2d, I'm good in javascript. while searching google for cocos2d, and within cocos2d-x.org i found cocos2d-x ...
0
votes
0answers
284 views

Limiting game loop to exactly 60 tics per second (Android / Java)

So I'm having terrible problems with stuttering sprites. My rendering and logic takes less than a game tic (16.6667ms) However, although my game loop runs most of the time at 60 ticks per second, it ...
0
votes
0answers
120 views

Displaying and updating score in Android (OpenGL ES 2)

I'm using a FrameLayout where I have a GLSurfaceView at the bottom and a few Views on top of it. One of those Views is a TextView that displays the current score. Here's how I'm updating the score ...
0
votes
0answers
110 views

Unity3D Android - Move your character to a specific x position

I'm making a new game for android and I wanted to move my character (which is a cube for now) to a specific x location (on top of a flying floor/ground thingy) but I've been having some troubles with ...
1
vote
1answer
172 views

Load previous (last) scene used in unity3d

Im making a 2D game for android and I made over 200 levels/scenes.I also made a game over scene that opens when the players collides with an obscale.In the GameOver scene I added a retry button which ...
0
votes
1answer
124 views

Separate parts of a game engine [closed]

I'm pretty new in developing videogames. By now I only used SDL with C/C++ to create games. I'm currently learning OpenGL and I realized that to be fluid and easy to maintain the code must be ...
0
votes
1answer
101 views

glGetActiveAttrib on Android NDK

In my code-base I need to link the vertex declarations from a mesh to the attributes of a shader. To do this I retrieve all the attribute names after linking the shader. I use the following code (with ...
1
vote
1answer
270 views

Issue porting Cocos2d-x to Android

I've written a basic game using Cocos2D-x on XCode. It works fine on the iPhone. Now I'm trying to port it to Android. When I run the script ./build_native.sh inside the proj.android folder, it gives ...
0
votes
1answer
202 views

Progress bar in Super Hexagon using OpenGL ES 2 (Android)

I'm wondering how the progress bar in Super Hexagon was made. (see image, top left) Actually I am not very sure how to implement a progress bar at all using OpenGL ES 2 on Android, but I am asking ...
2
votes
1answer
54 views

Empty Synchronized method in game loop

I am studying the gameloop used in Replica Island to understand a bit about Android game development. The main loop has the below logic... GameThread.java (note the variable names in sample code dont ...
1
vote
0answers
85 views

Trying to develop a game with android for cracking glasses in different dimensions

I am trying to develop a game in android where I will have to punch a hole to get through the glass but not shatter the glass completely. The glass will show up in different forms of polygons and ...
0
votes
1answer
77 views

OpenGL ES 1 Pixel Error?

I am developing a game on android using OpenGL ES 1.0 for Android OS. It is a 2d game using a simple Orthographic projection and textures for the sprites. One of these textures has a small line (it ...
0
votes
1answer
185 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
90 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 ...
0
votes
1answer
647 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 ...
1
vote
0answers
93 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
0answers
170 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
vote
3answers
347 views

Interpolation using a sprite's previous frame and current frame

Overview I'm currently using a method which has been pointed out to me is extrapolation rather than interolation. As a result, I'm also now looking into the possibility of using another method which ...
0
votes
1answer
115 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 ...
10
votes
2answers
351 views

Extrapolation breaks collision detection

Before applying extrapolation to my sprite's movement, my collision worked perfectly. However, after applying extrapolation to my sprite's movement (to smooth things out), the collision no longer ...
1
vote
2answers
257 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
97 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 = ...
-1
votes
1answer
253 views

in-app purchase in cocosSd-x 3.0

I am working within a team, and we're at the point of finishing our first cocos2d-x c++ application. We want to add in-app purchases. for what, we made a search for this. We found 2 solutions: 1- ...
2
votes
1answer
478 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
75 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
146 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
141 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 ...
0
votes
1answer
117 views

How do I implement multi-texturing using OpenGL ES 1.1 to combine separate RGB and alpha PKMs?

I have been trying to reduce the memory footprint of my textures in a Android game that I wrote without too much success. Based on research that I have done it seems that a good approach is to ...
2
votes
2answers
135 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 ...
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.
1
vote
1answer
164 views

Texture compression strategy for Android OpenGL ES that caters for alphas

I have a 2d Android game that is currently causing certain devices to run out of memory. I have a number of PNGs (about 10 MBs in total) that I use in the game at various times. At some points in the ...