Operating system for mobile devices. For non-developer questions, see http://android.stackexchange.com
2
votes
0answers
30 views
Cinema 4D to Android and IOS SDK
how can i convert Cinema 4D animation or models to use in games for android and IOS SDK?
or what kind of format is required for SDK games?
if i make a dancing character, do i need to make separate ...
2
votes
0answers
140 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 ...
2
votes
0answers
126 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 ...
2
votes
0answers
137 views
Camera - View matrix in Android + openGLES 2
I am trying to use the touch screen on the tablet to control my camera movements and generate the view matrix accordingly.
I get the x and y coordinates of the screen and after doing some sanity ...
2
votes
0answers
1k views
Best practice to use Sprites in a game using AndEngine GLES2
Currently I am having static reference to all my sprites and loading and initializing them in my OnCreateResource mthod of SimpleBaseGameActivity, But now I have to override onAreaTouched listener on ...
2
votes
0answers
815 views
AndEngine Making Chase Camera Follow Player
I am playing around with the AndEngine Race Game example. I am trying to make the camera follow the car as the player moves around. The Tile Map is larger than the player's screen but the camera ...
2
votes
0answers
363 views
How can I keep a SmartFox server connection alive while waiting for a client to connect?
I am making a game using SmartFox Server. During testing, if I take a few minutes before loading the game, SmartFox stops running and I can't connect. So I then have to restart SmartFox, which is very ...
1
vote
0answers
40 views
Accessing variables from non-neighbouring classes specifically in game development (Android)
Edit
Using direct access while breaking the law of demeter looks like this:
res.sprite.drawQuad(res.sprite.xScreen,res.sprite.yScreen, mMVPMatrix);
Using proxy methods / getters / setter looks ...
1
vote
0answers
76 views
How to implement a multi-platform Java 2D game engine's graphics?
I'm not sure whether this question should be posted here. I'm trying to make a basic generic game engine in Java. Here's what I have so far.
public abstract class Device {
public abstract void ...
1
vote
0answers
56 views
sharing preferences between two apps on android with libgdx
I am making an android game with both a demo version and a paid version. I want users who decide to buy the paid version to continue from where they left off, with all their old data and settings.
...
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 ...
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. ...
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 ...
1
vote
0answers
181 views
3 Button Multi-touch for Android
OK, my multi-touch system was somewhat convoluted, but was working perfectly OK until I tried to run my game on my Nexus 10 which is running Jellybean.
Crashing all over the place! So I removed my ...
1
vote
0answers
164 views
Scene or Activity Animation
My game require an animation when one activity finishes and next started because I have develop game with multiple activity not as multiple scene per game. I have to show animation at the time of ...
1
vote
0answers
60 views
2D map/plane with nodes overlayed that supports panning, scaling and clicking on nodes
I'm trying my hand at Android development and seem to be running into an invisible ceiling in trying to get what I want accomplished. Basically I'm trying to create an app that renders a 2D surface ...
1
vote
0answers
169 views
Drawing two orthogonal strings in 3d space in Android Canvas?
I want to draw two strings in canvas. The first string must be rotated around the Y axis, for example 45 degrees. The second string must start at the end of the first string and also it must be ...
1
vote
0answers
230 views
AndEngine Box2d game
I'm developing a 2d survival shooter using Box2d extension and I've got some questions:
I have two AnalogOnScreenControls. Their listeners modify both
sprites and bodies. I receive TouchEventPool ...
1
vote
0answers
979 views
LibGdx drawing weird behaviour
I am finding strange behaviour while rendering TextureRegions in my game, only when pausing it. I am making a game for Android, in Java with LibGdx.
When I comment out the line "drawLevelPaused()" ...
1
vote
0answers
224 views
Port flash game to native android
Alright here is the problem: the creators of a quite popular flash-based game have asked me to port their game to Android. They are not interested in any other platforms so we don't need to be ...
1
vote
0answers
759 views
Move a 2D square on y-axis on Android GLES2
I am trying to create a simple game for Android. To start, I am trying to make the square move down the y-axis, but the way I am doing it, it doesn't move the square at all and I can't find any ...
1
vote
0answers
542 views
Touchscreen panning in OpenGL ES 2.0
I'm trying to allow the user to pan a 2D scene by using the touch screen. I have tried several methods including translating the projection matrix, translating the view matrix and haven't found ...
1
vote
0answers
413 views
OpenGL ES multiple objects not being rendered
I am doing the following to render multiple balls move around the screen but only 1 ball is seen to appear and function. I don't know why the rest (count-1) balls are not being drawn
public void ...
1
vote
0answers
247 views
Adding Libxml2 to an Android project under Cocos2D-X
I am having problems porting Libxml2. I like it because it works under windows like a charm with <libxml/parser.h>. When I reference the libraries I just cannot find the right path to them, ...
1
vote
0answers
391 views
How to Store the game score in android cocos2d
I calculates the score in game project using android cocos2d, in that game after finishing the first level it goes to the next level, so i want to store that first level score and also add next level ...
1
vote
0answers
370 views
Context Menu on Surface View
I'm making a game for Android. The game interface consists of a SurfaceView, with objects represented by drawable Bitmaps on it. Is there a way to long-press one of the bitmaps and call a context ...
1
vote
0answers
398 views
How to create a collidable map with tiled for cocos2d (Android)?
I am using cocos2d to create a game for Android.
I am making a map in Tiled Map Editor and added a property to the ground tiles.
The property name is Collidable and its value is True.
Now I have ...
0
votes
0answers
20 views
Android: Using touch does not go to center
I have a simple OpenGL app that draws a circle, I want to move the circle based on where a person touches the screen. The problem is, OpenGL sees the height and width as -1 to 1, whereas Android sees ...
0
votes
0answers
11 views
What is the better way of generating levels in android game using LibGDX
I downloaded the source code of metagun for android from
https://github.com/libgdx/libgdx/tree/master/demos/metagun/metagun-android
The game uses a png image to create the level. It uses the ...
0
votes
0answers
11 views
Time on touch events?
Whats the best way to have a touch even cause an action for a specific period of time or deltaTime?
It seems like it should be simple, but I have tried while and for loops based on int counts for ...
0
votes
0answers
17 views
Flickering GUI on Android
New version of Unity is causing rather weird problems on Galaxy S device. The GUI starts to flicker, tear and disappear altogether at random in different screens. But this only happens on the second ...
0
votes
0answers
15 views
How to get sprites react to touches in cocos2d-android
i have 1 gun when tap on any area on the screen bullets fires out, but according to my requirement there are 3 guns(sprites) when touched on any of the sprites bullets must fire up, when googled i ...
0
votes
0answers
19 views
Android cocos2d getting collision detection to work only on some frames of animation
I have an animated bomb sprite in my game and use CGRect for collision detection:
for (CCSprite bomb : _bombs) {
CGRect bombRect = CGRect.make(bomb.getPosition().x - (scaleFactor * ...
0
votes
0answers
26 views
Adobe Air Mobile AS3 app: challenges and how to overcome them?
I made a PC flash game for LD 26 - minimalism and I am working on porting it to Android.
Some questions I'd like to ask:
Is it bad to heavily use vector graphics (ie. this.graphics.lineTo()) in ...
0
votes
0answers
72 views
Android OpenGL ES 2.0 gameloop problems
I implemented a gameloop found here: http://www.koonsolo.com/news/dewitters-gameloop/ into my OpenGL ES 2.0 Android game. The tutorial was written with the canvas API in mind, not OpenGL so I made a ...
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
0answers
52 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:
...
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 ...
0
votes
0answers
68 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). ...
0
votes
0answers
141 views
Converting motionevent.getx and motionevent.gety to pixel or Object coordinates in the view
I am trying to draw buttons using OpenGL I have added a Gesture Listener for the GLSurface View now i have motionevent when ever the user touches. My question is how can i convert motionevent.getx and ...
0
votes
0answers
286 views
Limited Screen Switching Count Memory Issue
When making my simple app for revisions to update the latest changes, I test it first between the device (Google Nexus 7) and desktop using Eclipse IDE. I made eleven screens for the game in terms of ...
0
votes
0answers
112 views
How to dispose of OpenGL resources cleanly on Android
I am creating a framework for OpenGL ES 2.0 for android and my question is how can I cleanly dispose of my OpenGL resources when my android app is done?
I check for isFinished() in the onPause() ...
0
votes
0answers
154 views
Android LibGDX Pixmap issue
I'm developing a game for Android using libGDX. I implemented "spotlight effect" for highlighting some scene elements in tutorial levels. I did use Pixmap class for implementing this. So I did ...
0
votes
0answers
300 views
Dynamic 2D (1D) map generation in libgdx
I'm currently brainstorming a game idea and I have stuck in one place. I'd like to dynamically generate endless map which looks pretty much like the one in game Hill Climb Racing (Android) or like ...
0
votes
0answers
173 views
LibGDX Touch Box2D Body
I am using LibGDX, however, instead of using the stage, actors, etc, I wanted to use straight Box2D that way I could port it easily (to iPhone) later. I have the character moving with the ...
0
votes
0answers
230 views
How to monetize freemium game that is cross platform playable?
I have a query and am really not sure if this is the right place to post it but if any one can help I will be grateful.
Am developing a game based on fremium model. It's already live on web and ...
0
votes
0answers
77 views
How to monitor the object position while it moves from one place to another?
In my game two objects rotate in opposite directions and at one particular
place, the two objects meet. In that place I want to track the x and y degrees.
If this is possible please share your ideas.
...
0
votes
0answers
242 views
Transformation Matrix in Android Canvas?
This question is following up my previous question that I asked it in stackoverflow: Hide a face of a 3D shape behind another,Android canvas?
I have a canvas and I have to get the normal vector of a ...
0
votes
0answers
51 views
What could cause dispersed triangles instead of integral model?
So the thing is, I get dispersed triangles instead of model that I'm loading, in this case it's just a cube. It seems as those triangles have no points that connect them. Is there anyone who had this ...
0
votes
0answers
267 views
libGDX using Stage and Actor produces different camera angles on desktop and Android Phone
libGDX using Stage and Actor produces different camera angles on desktop and Android Phone.
Here are pictures demonstrating the problem: http://brandonyuh.minus.com/mFpdTSgN17VUq
On the desktop ...




