Questions tagged [andengine]

AndEngine is a free 2D OpenGL game engine for the Android platform and includes the Box2D physics engine.

AndEngine is a free 2D OpenGL game engine for the Android platform. Along with the core engine, the platform supports extensions, such as the following:

There is a fairly active community forum and the code itself is well designed and extensible.

AndEngine lacks documentation. To compensate the lack of documentation there is an AndEngine examples project available on GitHub and corresponding app on the PlayStore.

The current active development branch is GLES2-AnchorCenter and it's expected to be merged into the GLES2 branch.

The main difference between GLES2 and GLES2-AnchorCenter is the origin of the coordinate system.The coordinate system in the GLES2-AnchorCenter branch has its origin in the lower left.

2232 questions
6
votes
1 answer

AndEngine with Google Play game services

Im using AndEngine-GLES2-AnchorCenter and I want implement Google Play game services. I copied BaseGameActivity and GameHelper classes from BaseGameUtils (part of Google Play game services - Android Samples) to my project in same util…
Shaddow
  • 3,175
  • 3
  • 22
  • 42
6
votes
3 answers

No EGLConfig found

I'm trying to make simple Game in android using AndEngine tutorial Now When I run the project I get the error saying that java.lang.IllegalArgumentException: No EGLConfig found! TowerOfHanoiActivity.java public class TowerOfHanoiActivity extends…
Kirit Vaghela
  • 12,572
  • 4
  • 76
  • 80
6
votes
2 answers

Character never stops from walking

I am creating a game which uses andendgine and here is my code: Player stanley = new Player(); ... scene.registerUpdateHandler(new IUpdateHandler() { public void onUpdate(float pSecondsElapsed) { stanX = stanley.getX(); destX = x.getX(); …
Rick Royd Aban
  • 904
  • 6
  • 33
6
votes
1 answer

AndEngineRuntimeException: Inherently incompatible device detected.

I am getting error like this on my phone when i run my AndEngine program it is successfully run on my frnds phone but when i tried to run i am getting error like Inherently incompatible device detected... my logcat is below 10-16 14:13:23.061:…
user1702237
6
votes
3 answers

Android AndEngine: handling Collission Detection properly

I am working on a simple AndEngine game that involves the ff. sprites a.) tanks b.) soldiers c.) bombs I have a similar question located here: Android AndEngine: Simple sprite collision What the game looks like: However upon fixing the initial…
Erasmus
  • 427
  • 2
  • 10
  • 23
6
votes
2 answers

Andengine: destinguish between OnAreaTouched and OnSceneTouched

Hi Everyone, in the game I develop with AndEngine, there are a lot of sprites running around. Now every of this sprites has a TouchArea registered to the scene, because I display some informations about the sprite when it is touched. The Scene…
GameDroids
  • 5,584
  • 6
  • 40
  • 59
6
votes
0 answers

andengine: Add a view containing UI controls on top of andengine using addContentView

I am trying to create an EditText on top of an andengine game to act as an ingame chatbox. The method I am using works fine on Android 2.2.1 IDEOS 2, Emulator Android 2.1, Emulator Android 2.2, Emulator Android 2.3. UPDATE 25/APR/2012: Recently…
5
votes
2 answers

GTA2 like Car Physics, but extremely simplified

Okay so this problem has been bothering me for the longest time. Can anyone show me or point me to an algorithm that can control a car like that of GTA2? After 3 days of research all I could come up with was all of these algorithms for using pivot…
Free Lancer
  • 1,000
  • 2
  • 16
  • 33
5
votes
2 answers

eglSwapBuffers failed: EGL_BAD_ALLOC AndEngine Android

I m developing a game in And engine which throws the exception. Actually I don't know the point where exceptions occurs. It is reported in market many many time. java.lang.RuntimeException: eglSwapBuffers failed: EGL_BAD_ALLOC at…
Jawad Amjad
  • 2,532
  • 2
  • 29
  • 59
5
votes
3 answers

AndEngine error on loading library

I have a problem while running the examples from andengine. The error I'm getting is at this line: System.loadLibrary( "andenginephysicsbox2dextension" ); Couldn't load andenginephysics2dextension. Find library returned null. I noticed other people…
Fofole
  • 3,398
  • 8
  • 38
  • 59
5
votes
3 answers

How to use native Textview (View) in Andengine Game Activity

I want to know is there any way to use native TextView or any other layout of android inside BaseAndEngine Activity. My application is using Andengine for one of its whole screen. This screen is extended from BaseAndEngine and I need to use some…
Rai
  • 133
  • 4
  • 7
5
votes
1 answer

Create a random, sine graph like landscape sprite

Lets say I have this sprite: And I created a random landscape during runtime: And then, I want to tile the area below the line with the sprite: This is the game ground, therefore it should also be a physics object (In Box2D). Here, he given a…
Jong
  • 9,045
  • 3
  • 34
  • 66
5
votes
4 answers

How to run my game for different screen resolution using andengine

I am developing a game using andeninge. I fixed camera width and height private static final int CAMERA_WIDTH = 480; private static final int CAMERA_HEIGHT = 320; @Override public Engine onLoadEngine(){ this.mCamera = new Camera(0, 0,…
JohnRaja
  • 2,377
  • 6
  • 26
  • 47
5
votes
2 answers

How to move an Sprite in Fling/Swipe direction(Diagonally) using AndEngine

I am working on a game in AndEngine. In that I am able to move an Object in Right to Left, Top to Bottom and vice-versa. But, my issue is that how can I move the Sprite object in the Direction of Fling? It means if users Fling's in any direction the…
Lalit Poptani
  • 67,150
  • 23
  • 161
  • 242
5
votes
3 answers

How to get Resources from drawable folder - AndEngine

I am working on a game and I want to set the layout of game such that it works on Multiple device screens. So, instead of fetching images from asset's folder, I making looking for some way to fetch it from the drawable folder. So, that later on I…
Lalit Poptani
  • 67,150
  • 23
  • 161
  • 242