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
0
votes
0 answers

working with tiled animated sprites in andEngine

I am working with a relatively small sprite sheet that contains 1 row of 6 tiles. what I would like to do is loop through the first 5 tiles 3 times and then stop on tile 6. Any help would be greatly appreciated.
IrishCarBomb
  • 49
  • 1
  • 2
  • 11
0
votes
2 answers

Is it there a property to arrange menu items horizontally in AndEngine?

Is it there a property to arrange menu items horizontally AndEngine? The default layout is vertical, do you know a way to set it horizontal?
Lucas Massuh
  • 221
  • 2
  • 9
0
votes
1 answer

Why Swipe left doesn't work?

I wrote the below code to detect and perform a sprite action on the single tap and swipe right event. @Override public boolean onSceneTouchEvent(Scene pScene, TouchEvent pSceneTouchEvent) { float x = 0F; int tapCount = 0; boolean…
Hitesh
  • 5
  • 4
0
votes
1 answer

How do I detach a sprite after a certain number of collisions in Andengine?

I'm working on this game where you keep a tower from being hit 3 times by incoming missiles. The variable g is the counter. Once it reaches 3, I want the tower to disappear. Instead, it gets hit once and then disappears. I'm guessing this is because…
0
votes
2 answers

Unable to execute dex: Multiple dex files define Lorg/andengine/AndEngine

I'm getting this error when running my project: [2014-05-21 20:42:51 - Dex Loader] Unable to execute dex: Multiple dex files define Lorg/andengine/AndEngine; [2014-05-21 20:42:51 - MyActivity] Conversion to Dalvik format failed: Unable to execute…
Sümeyra
  • 41
  • 1
  • 2
0
votes
1 answer

Entity modifiers don't modify it childs

I've an Entity "holder" with some child Sprites and ButtonSprites. When I do something like: entity.registerEntityModifier(new FadeInModifier(ALPHA_MODIFER_DURATION)); nothing happens, but if I register this EntityModifier to the child Sprites one…
GuilhE
  • 11,591
  • 16
  • 75
  • 116
0
votes
0 answers

Too many sprites produces on this action

This is my sprite class and i want to call the method on tapping the sprite and there should also b a time delay. The onGenerate() method is in activity class public boolean onAreaTouched(TouchEvent pSceneTouchEvent, float pTouchAreaLocalX,…
0
votes
2 answers

Move background vertically in andengine

I want to move background vertically.I tried it but it's not working.By applying below code image background remain still.I tried it by changing it's direction here (bgEntity = new VerticalParallaxEntity(0.0f, background, direction)) but cause no…
user2952423
  • 121
  • 7
0
votes
1 answer

Andengine - OnCreateRecourses produces triangle on device. What am I missing?

Hi Whenever I use this code it produces a triangle in the upper right corner of my android device, anything I'm missing? thanks. Do I have to add anything special in my onCreateScene etc. My onCreateResources: @Override public void…
0
votes
1 answer

andEngine Box2D DrawingShapes

Currently making a scene where users click to add shaped to the scene but I can't find a way to draw shapes such as circles and triangles so that they can be used with Box2D. Please can someone point me in the right direction?
user3648686
  • 19
  • 1
  • 5
0
votes
1 answer

Box2D Physics with Andengine not working on real devices but works on emulator

I know this is silly question but I can not getting any reson why its happening.I am new to android gaming and I am trying to create a simple ball falling scene using Andengine SDK.For this I used Box2D Extensions Physics to create ball falling…
riya ahuja
  • 260
  • 6
  • 18
0
votes
0 answers

AndEngine: java.lang.NullPointerException in onCreateResources()

I got this error when creating the background in my game. But if I use the same code in another project, it works great. I can't understand. Here is my code: public class Play extends SimpleBaseGameActivity { BitmapTextureAtlas…
Phong Ho
  • 5
  • 4
0
votes
1 answer

Add AndEngine library as jar

I have tried to add AndEngine in several ways but it didn't work. The tutorials I followed were for GLES2 and I did exactly what they asked me to do. I updated Eclipse I made Java Compilance is 1.6 I have checked the needed things in Order and…
SamJ
  • 413
  • 1
  • 4
  • 18
0
votes
1 answer

AndEngine GLES 2 - Defenetly unload/remove BitmapTextureAtlas from OpenGL Context

I'm wondering how I can do this? Because at the moment I use BitmapTextureAtlas.unload() but that doesn't remove/clear data from OpenGL context. I know it because after I unload every texture in game. Then pause and resume app, when OpenGL recreate…
Błażej
  • 3,617
  • 7
  • 35
  • 62
0
votes
2 answers

Cannot create font in andEngine

I am getting an error when trying to run this code: FontFactory.setAssetBasePath("font/"); final ITexture mainFontTexture = new BitmapTextureAtlas(activity.getTextureManager(), 256, 256, TextureOptions.BILINEAR_PREMULTIPLYALPHA); font =…
Jared
  • 394
  • 4
  • 15
1 2 3
99
100