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
152
votes
29 answers

Why I am Getting Error 'Channel is unrecoverably broken and will be disposed!'

When I try to launch my AndEngine Activity, I get this error: ERROR/InputDispatcher(21374): channel '4122e148 my.package.AcGame (server)' ~ Channel is unrecoverably broken and will be disposed! The app doesn't crash, but there's a black screen and…
uncle Lem
  • 4,954
  • 8
  • 33
  • 53
25
votes
3 answers

Android comprehensive failproof music service across multiple activities

I know this question has been asked many times before and might seem to be a conglomeration of several questions, but I feel that it is relevant and important to many developers; I need to create a background music Service that can run across…
pqn
  • 1,522
  • 3
  • 22
  • 33
22
votes
3 answers

How to pass elements of an arrayList to variadic function

I've got an arrayList filled with elements. I would like to pass the elements of that array list as arguments to a variadic function. My function public SequenceEntityModifier(final IEntityModifier... pEntityModifiers) My…
pad
  • 237
  • 2
  • 5
20
votes
3 answers

How to display text with two-color background?

I need to create an app for android, where the 2-color text will be displayed on the 2-color background. See picture on the left. Then, the line should be moved with animation and result image should be like on the picture on the right. I have the…
LA_
  • 19,823
  • 58
  • 172
  • 308
17
votes
5 answers

Game Development, strange image effect while moving camera

I'm developing Side Scroll 2D Game, using AndEngine I'm using their SVG extension (I'm using vector graphic) But I discovered strange and ugly effect, while moving my player (while camera is chasing player exactly, means while camera is changing…
Matthewek
  • 1,519
  • 2
  • 22
  • 42
16
votes
2 answers

How can i create a circle which has a number in?

I'm programming an Android game using AndEngine. I want to create a circle which has a number in, like in this picture:
Kadir
  • 411
  • 1
  • 6
  • 19
12
votes
2 answers

Andengine fade in/out and alpha modifiers not working

I have a problem with AndEngine GLES2. I have this code: Sprite black = new Sprite(0,0, blackRegion, this.getVertexBufferObjectManager()); black.setSize(CAMERA_WIDTH, CAMERA_HEIGHT); black.registerEntityModifier(new AlphaModifier(2, 0,…
Jonas Peteraitis
  • 333
  • 4
  • 16
12
votes
6 answers

Optimization of AndEngine game

I am using java + AndEngine in my game. During the game i have some freezes, i looked for the information and found some steps how to optimize game performance: Avoid GC (garbage collector) to be called in main action in the game: a)don't create…
dilix
  • 3,761
  • 3
  • 31
  • 55
12
votes
1 answer

Parallax XY and rotation - tile calculation

I have this code for drawing my parallax background pGLState.pushModelViewGLMatrix(); final float cameraWidth = pCamera.getWidth(); final float cameraHeight = pCamera.getHeight(); final float shapeWidthScaled = this.mShape.getWidthScaled(); final…
Paweł
  • 2,144
  • 1
  • 18
  • 25
12
votes
4 answers

Installing AndEngine in Eclipse

I'm wanting to install AndEngine... I've came across Some videos that show you how to install it. But these videos were done last year, and since then, the method of installing it has changed. At lest the way they were doing it in these videos...…
KodiakBear211
  • 181
  • 2
  • 3
  • 13
11
votes
5 answers

Unable to add AndEngine to Android Studio

I am trying to almost 2 days to add AndEngine to Android Studio but unable to do so. I tried the following two methods, neither worked. 1st Try I download the AndEngine code from GitHub Link -- this is NOT a Gradle Project and tried to add it to my…
user1406716
  • 9,565
  • 22
  • 96
  • 151
11
votes
2 answers

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 spirtes and the way I can override it while…
Waqas
  • 4,411
  • 6
  • 27
  • 31
11
votes
4 answers

Andengine low FPS on certain phones

My game runs well on most phones (56 FPS), but others run the game at ~25 FPS. In my game I have 3 particle systems and as far as I can tell the problem comes from here. My question: Is it a good idea to stop spawning particles if I detect FPS lower…
user874649
11
votes
3 answers

Sprite size on different screen size Andengine Android

` I am developing my first game in Android Adnengine. It's a racing game from top view. I used parallax background and some cars. I tested it on my device which is of smaller width and height. I placed the cars of with 32 and height 64 according…
sheraz amin
  • 1,149
  • 2
  • 14
  • 23
10
votes
3 answers

Avoiding The "No EGLConfig found!" Error

one of my users are reporting this error for my game. i am using andengine as my engine. Here is the error. java.lang.IllegalArgumentException: No EGLConfig found! at org.andengine.opengl.view.ConfigChooser.chooseConfig(ConfigChooser.java:183) at…
coder_For_Life22
  • 26,645
  • 20
  • 86
  • 118
1
2 3
99 100