Operating system for mobile devices. For non-developer questions, see http://android.stackexchange.com
2
votes
0answers
45 views
Use “Google Play Game Services” (Multiplayer feature) with LibGDX
i'm developing a simple game (for Android, using LibGDX Framework) and i would like to implement multiplayer feature to it. So, since the main project with the logic of the game in LibGDX is separated ...
2
votes
0answers
29 views
Best way to manage sprite sheets on Android using NME
I'm creating a 2D game for mobile touchscreen devices, specifically Android and iOS. I would like to know what is the best way (regarding performance and best practices) to manage sprite sheets.
...
2
votes
0answers
60 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
154 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
159 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
150 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
233 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 ...
2
votes
0answers
823 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
373 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
47 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
110 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
72 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
49 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
77 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
79 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
205 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
178 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
176 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
1k 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
225 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
794 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
566 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
423 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
262 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
398 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
376 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
409 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
29 views
GLRenderer will not run when resuming app
I'm displaying a dialogue over my GLRenderer and then dismissing it from my Renderer's onSurfaceChanged method (once all resources have loaded and just before rendering starts)
When I first run my ...
0
votes
0answers
21 views
Motorola Defy (CyanogenMod) and OpenGL ES textures
My friend tested my game on a Motorola Defy (with CyanogenMod v4.x, I don't remember exact version number, and she is not reachable now).
My game uses OpenGL ES (v1.1, and in another activity, v2.0). ...
0
votes
0answers
20 views
Android , why GLSurfaceview output is different in Various Devices (Google Nexux7,Samsung Galaxy Note II)
I have created an android app for drawing of lines,circles.. by using
GLSurfaceView in OpenGLES 2.0 like an Auto cad app.
The app works well with Google Nexus 7, in the sense that if we draw a ...
0
votes
0answers
20 views
Trouble Reading Image File and Directory from Assets Even if it's Correct
I was wondering, I used the right directory of the image file and name as well for the app.
Strangely, I got an error on this result after I run the app and rendering an image whose image length and ...
0
votes
0answers
25 views
Android notifications with Unity
I'm working for the first time on a game for Android using Unity and I need to use Google Cloud Messaging to receive push messages.
I've already done the integration of my Unity project with GCM, ...
0
votes
0answers
28 views
Android Dynamic 2D Map
My problem is, I want to create a 2D tiled map. Yes, I know it's been asked a lot. I've seen answers that propose the use of tiled however it only allows (or so it seems to me) to generate static maps ...
0
votes
0answers
46 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
18 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
25 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
40 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
39 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
106 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
59 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
73 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
68 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
98 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
148 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
293 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
141 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
163 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
322 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
177 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
253 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 ...




