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

learn more… | top users | synonyms

-2
votes
1answer
123 views

Spawning enemies outside of view [closed]

I'm trying to create a 2d shooter for Android. How do I spawn enemies "above" the screen, so that they "enter" the game screen instead of spawning at the top of it? I think I need to make a game ...
-1
votes
1answer
47 views

Maze solver with Astar on android? [closed]

I have a question I am looking for some tutorials or guides on how to create a simple android game or application. the user can define their starting position and ending position the ...
-1
votes
1answer
83 views

Ways to achieve path finding on android [closed]

I have spent two weeks on this task and its to no avail,i hope your expertise can help me. I want to create a simple set of activities that allow the shortest path to be calculated between two points ...
0
votes
3answers
102 views

Where to run logic update in openGL ES?

Using Canvas with Surfaceview I had a run() method where I would essentially do the following: onDraw(); update(); Where onDraw method would do the rendering and update would update all my game ...
-2
votes
1answer
110 views

Game code structure using openGL / Android [closed]

My game will have 3 activities (splashscreen, options menu and main game). As it stands, each is a separate activity with it's own activity class and GLSurfaceview class. Is this structure the right ...
0
votes
0answers
49 views

Strange problem with rendering quads in OpenGL ES 2.0 with custom classses on Android

I have 2 custom classes, one is for drawing quads (Quad) and the other is for drawing quads using VBO's (VBOQuad). If I create a simple quad and render it like so: Quad sprite = new Quad(); ...
0
votes
2answers
123 views

onTouchEvent only working for one view within activity

I have a parent Activity which contains 2 views. One view is a custom view class, where I am overriding the onDraw method. This view contains an onTouchEvent function, which is checking for user ...
2
votes
1answer
125 views

OUYA Developer Kit throws various errors on start

I followed these instructions for Mac OS X using an existing IDE (shell + text editor) instead of the Eclipse ADT thingy. I activated “Use Host GPU”, and installed Intel HAXM. Installing the ...
2
votes
1answer
160 views

How to create a 2D ocean effect in cocos2dx and box2d for iphone, android, windows phones

Currently my game needs a top ocean view. Can this ocean effect done using box2d? or should I dive into write my own physics (liquid/water simulation). Ideas and suggestions are welcome.
1
vote
1answer
105 views

Separate renderng thread in Android (OpenGL ES 2.0)

I'm used to mainly working with the Canvas SurfaceView API on Android and have recently been learning openGL ES 2.0 With canvas I know that surfaceView gives you the ability to start a new thread to ...
1
vote
1answer
108 views

Powers of 2 textures in Android 2d games?

I've read a lot about the importance of using powers of 2 png's for textures when using OpenGL ES. However, how does this relate to Google's own documentation regarding the resizing of graphics for ...
1
vote
1answer
42 views

Show view over existing view in same activity

I am newbie Android developer, and I am starting out with a simple Sudoku game. The problem I am facing right now is that I have my game showing on a dedicated Activity, which is displaying a custom ...
-1
votes
2answers
173 views

Developing a 2D Android game on Unity - Pros and Cons [closed]

Depending on your experiences, if you have created a 2D game on Android using Unity, was it painful? Have you ever said "I wish I have used X instead of Unity!"? Tell me the Pros, Cons and the name ...
0
votes
0answers
44 views

Android: Switch(swipe) places on two images [closed]

I have two images next to each other and I want to switch their places with a swipe. I made collision detection but I don't now how to swipe and change their positions. I'm really new at this, so ...
0
votes
1answer
148 views

GameLoop architecture for local multiplayer

I'm writing a game for Android to which I want to add a mulitplayer mode (local multiplayer via WiFi/Bluetooth, not online multiplayer via server). I stored the exchange-code between the client ...
0
votes
0answers
45 views

Understanding quaternions and axis angle representations [closed]

I have a sensor that gives me a quaternion. I convert the quaternion to an axis-angle representation using http://www.euclideanspace.com/maths/geometry/rotations/conversions/quaternionToAngle/. When I ...
0
votes
1answer
106 views

Drawing more that one quad with only one glDrawArray call…?

Edit After initially thinking that my sprite batch test was faster than calling each sprite individually, it appears that is not the case!! :-( With a single set of GL calls for a each sprite, I can ...
2
votes
2answers
109 views

How can set vibration option with my game in android? [closed]

I am using AndEngine to develop an Android game and I want vibration to be triggered when an enemy hits a player. How can I implement this into my game?
2
votes
2answers
176 views

Android: Loading bitmaps without premultiplied alpha (OpenGL ES 2.0)

Is this possible? To load textures in non-premultiplied format (Straight alpha?)? My game has 1 or 2 images which have semi-transparent pixels and I need to be able to fade them in and out but this ...
-2
votes
1answer
69 views

Android game adaptative game flux [closed]

¡Hi mates! Two friends and I are planning to code a game for Android using AndEngine GLES 2.0 Anchor but we have a concept problem, we need the game to be as adaptative as possible, I mean, if we make ...
0
votes
0answers
50 views

Listview on Canvas. Nullexception error

I'm developing a game app. I use a MVC that updates and renders animations/text in a canvas. I need to show/hide a listView like I've done with this appTest: ...
1
vote
1answer
179 views

Adding local wireles multiplayer mode to my Android game

I've created a little game on Android. Now, I want to add a multiplayer mode which works with bluetooth or WiFi, so you can play together with other "smartphones" in your neighborhood . Which is the ...
1
vote
1answer
78 views

Switching from OpenGL ES 1.0 to 2.0

I have been developing an Android app using OpenGL 1.0 for quite some time using a naive approach to rendering, basically making a call to glColor4f(...) and glDrawArrays(...) with FloatBuffers each ...
-1
votes
1answer
34 views

Why doesn't onSurfaceCreated ever run in this code?

I create my game element this way in my activity: public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); mGame = new Game(this); mGame.bootstrap(); ...
2
votes
0answers
139 views

How can I tell if OpenGL has finished rendering the current frame?

If I make a call to http://developer.android.com/reference/android/opengl/GLSurfaceView.html#requestRender() from my game loop, how can I tell when OpenGL has finished rendering? I don't want to ...
0
votes
2answers
149 views

Move Enemy towards Player in android using andEngine

I want to move all enemy towards player but i can't do this.Is there any way by which i c an perform this task?
3
votes
1answer
53 views

How can I change width of sprite Dynamically?

I want to change width of sprite dynamically but i can't perform it.!! Here i want to change only my white sprite i want to use these type of facility in my game in using AndEngine I want to display ...
-1
votes
1answer
52 views

How to Fix Some Portion of bound camera?

I want to add Progress bar with my game to display life of player but when i move down through DigitalOnScreen Control the black bar that i want to display is not displayed there. I want to display ...
1
vote
0answers
45 views

Android opengles how to use glunproject

How to use glunproject in my android app? I have the following parts in my engine: A projection matrix A view matrix for the camera A model matrix for each of the objects in my world. This matrix ...
0
votes
1answer
102 views

Develop a 2d isometric mobile game on Flash [closed]

I'm building a game on Flash that will run on web/Android/iOS. The game is 2d isometric.I heard that developing mobile apps on Flash sucks and the graphics looks just awful.It'd be quite uncomfortable ...
3
votes
1answer
146 views

Google Play 3rd Party Payment Allowed?

Does Google allow 3rd party payment solutions to be enabled in developers' apps (i.e., Paypal, carrier/SMS payment), especially in countries where Google Checkout isn't present? Or does this violate ...
0
votes
1answer
97 views

Get back or delete an existing OpenGL object, then change it and draw at new. How?

With OpenGL i'm drawing for example a circle. Can i take this drawn circle back out of the window and change something and then draw it back on the window? Or can i /have to delete it and then draw ...
0
votes
0answers
61 views

Android - Rendering HUD View to SurfaceView

I have developed a relatively simple game in android, to get my head around it all, and on the back of it developed a crude game engine (in the loosest sense!). I use a SurfaceView and canvas (no ...
2
votes
0answers
123 views

How to make the background of an OpenGL object transparent?

It sounds so simple but i didn't get it to work. The Background of my FrameLayout where i add the GLSurfaceView in is colored blue but there is only black. So here is my method to initiate the ...
1
vote
1answer
73 views

Can't call method out of a timer. Why? [closed]

I have another problem i can't solve by myselve. My situation: I have four FrameLayouts in LinearLayouts. I color them, set Layout hight and width at wrap content and just change the minwidth to ...
1
vote
1answer
162 views

How to draw an OpenGL object in another on Android? -> Eyes and Eyeballs

As i allready wrote in another question: I'm working on OpenGL since a Week, so i'm new to the most stuff. (also my englisch isn't the best. Hop you can understand the most anyway) So i'm ...
1
vote
0answers
68 views

How to change/modify or animate an existing OpenGL object on Android?

I maybe know understand it all a little bit better so i thoug i make a new shorter question to eventually get an answer. Get back or delete an existing OpenGL object, then change it and draw at new. ...
0
votes
1answer
67 views

Cost of changing scene in andengine

I'm working on a simple 2d puzzle with small textures (in count and quantity). Now after I finished the game logic I'm considering tow options to switch between levels: Remove all objects manually ...
0
votes
2answers
79 views

Android bitmap placing

I've recently added an explosion in my game, for when enemies get killed, and it works fine and all, but the explosion wont "spawn" on the enemies x and y. The problem is that I'm not drawing the ...
7
votes
2answers
309 views

What's the best way to draw lots of trees

I'm writing an app which renders a random island planted with trees. The trees are currently two quads, criss-crossed and drawn with textures. I plan to have more complex meshes that form different ...
1
vote
1answer
217 views

How do I get smooth edges with OpenGL on Android?

Here is a screenshot that maybe makes clear what my problem is. I'm only drawing 2D circles with OpenGL. I already read the following: ...
3
votes
3answers
200 views

Javascript board game: looking for optimization

I posted this question on stackoverflow before but received no answers so I decided to post it here and see if someone could suggest me something. I'm working on a html/javascript game for android. ...
0
votes
1answer
99 views

'No Platforms Found' error in Unity Android

I am having a problem with Unity Android - every time I try to "build", a 'No Platforms Found' error pops up. Thing is that I already have Android SDK in my computer (copied it into my G drive from ...
1
vote
2answers
269 views

Creating offline multiplayer Android games with Unity

Is it possible to create offline multiplayer Android games with Unity (played over bluetooth/ wi-fi)? If so, then I would like to create a 2 player game prototype, containing a single room (empty ...
1
vote
0answers
74 views

Android multi screen rendering

Is it possible on Android to render specifically / only, to the connected Monitor/TV on the hdmi port? If so, is it possible to use OpenGL ES to render a different scene on the monitor and on the ...
2
votes
2answers
119 views

How can I control the frame update rate of a thread?

I'm building a small game for a college project. It's quite a simple game. There are a number of dots on the screen and the player has to select them in a specific order. It's kind of a "join the ...
1
vote
2answers
202 views

GLSL Motion blur on mobile.. possible at acceptable framerates?

I have been struggling to implement a simple linear motion blur effect on mobile (Android, OpenGLES 2.0) but it just seems to destroy my framerate. I'm rendering to texture (FBO) then applying a ...
0
votes
0answers
105 views

graphic effects of Android game “Achtung” [closed]

I would be very gratefull if someone can give me a hint how the graphic effects of this android game ( http://www.isignz.nl/achtung ) works. Let us let this "pixie dust"-stuff aside for the moment; I ...
-6
votes
2answers
145 views

Moving a sprite diagonal?

I wonder how I should increase and decrease the value of xPos and yPos to be able to move a sprite object diagonal and in different angles? canvas.drawBitmap(image, xPos - (image.getWidth() / 2), ...
0
votes
0answers
64 views

Texture not rendered correctly while zooming in LibGdx

I'm trying to make a game with libgdx which can run in multiple aspect ratio. The idea is to zoom in/zoom out the camera until the height of my screen same as the device height (my game is landscape). ...

1 2 3 4 5 17