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
5
votes
1 answer

AndEngine Sprite/Box2D Body removal crashes my program with no error/exception information?

I am making a skateboarding game with obstacles you have to jump over using box2D and AndEngine. I am trying to make it so that when the player collides with an object, the object is removed and an explosion is placed at the objects old position,…
AndroidNoob
  • 2,771
  • 2
  • 40
  • 53
5
votes
2 answers

How to change Sprite layer in andengine

How to change Sprite's layer during runtime in andengine Scene?
stackuser
  • 239
  • 2
  • 7
5
votes
1 answer

andengine apply force

does anyone know why applyforce only works on one of my sprites? Also when I press the other sprites it also applies force to the one individual sprite. The nextTile method works fine. enter code herepackage com.martynnorman.jude; /** * @author…
5
votes
2 answers

how to move sprite object using AndEngine (Android)

I am using andengine to develop a game in android. I placed an object in sprite like this.mTexture = new Texture(32, 32, TextureOptions.BILINEAR_PREMULTIPLYALPHA); this.mFaceTextureRegion =…
JohnRaja
  • 2,377
  • 6
  • 26
  • 47
5
votes
3 answers

Compile multiple modules in Android Gradle Dependency

I'm trying to create an app with andEngine WITH its physicsBox2D extension. For that, I have to add 2 modules and then compile in my app - andEngine and andEngine PhysicsBox2D. I have the following Gradle code - apply plugin:…
FadedCoder
  • 1,517
  • 1
  • 16
  • 36
5
votes
2 answers

andEngine Android-Studio linker Error during Build

I took the source of AndEngine from their git repo, downloaded a fresh AndroidStudio, sdk and ndk,imported it, and tried to creat a simple new empty GameActivity extends BaseGameActivity. But I could not start it, cause I get the following…
user3387542
  • 611
  • 1
  • 8
  • 28
5
votes
4 answers

google play services not available due to error 2

I have two activities in my app and i am showing google AdMob banner ad in these activities. First activity runs fine and it shows banner ad as well but whenever i start second activity it generate the force close error saying these lines…
5
votes
3 answers

How to get started with andengine

Are there any good resources to get started with Andengine? Any good tutorials, blogs or books? Of course, I have visited its official website http://www.andengine.org/, but I didn't think the documentation they have is a good starting point.
Waqar
  • 263
  • 1
  • 9
5
votes
1 answer

Google Play Game Services - Custom Notification / Welcome Back

I have been looking all over the internet, but can't find my answer. Is there a way to show the user that they are signed in to the GPGS. The first time you sign in you'll get a notification, what will say "Welcome < name >" But when you open the…
Dytanoth
  • 107
  • 3
  • 11
5
votes
2 answers

Scrolling a childscene in AndEngine

I have a problem scrolling my childscene. I have created a CameraScene which i am trying to scroll with a touch event. My childscene is not scrolling, however, if i scroll on the camera attached to the engine the parent scene scrolls fine. So how do…
Flexo
  • 2,506
  • 3
  • 21
  • 32
5
votes
1 answer

AndEngine GLES2- IndexOutOfBoundsException inside Entity.java line: 1402

I have following errors which I have no idea about: 06-08 19:59:54.367: E/AndroidRuntime(11629): FATAL EXCEPTION: UpdateThread 06-08 19:59:54.367: E/AndroidRuntime(11629): java.lang.IndexOutOfBoundsException: Invalid index 11, size is 0 06-08…
Nafis Abdullah Khan
  • 2,062
  • 3
  • 22
  • 39
5
votes
1 answer

How to apply gradient background in andengine

I've been looking around for awhile now, and can't seem to find out how to set a scene's background as a gradient... it's hard to find solid Andengine-related answers, I guess my options are: using a sprite from a gradient image I've created myself…
a_schimpf
  • 745
  • 1
  • 5
  • 16
5
votes
1 answer

Screen Capture in andengine gives upside down mirror image

In my situation i haven't use RenderSurfaceView. I want to take a screen capture of my scene. But when i save the screen shot it shows upside down mirror image. Cant understand what im doing wrong here. Here is my code attachChild(screenCapture); …
posha
  • 881
  • 4
  • 16
  • 28
5
votes
2 answers

Android screen orientation handling issue

I'm working on the android live wallpaper applications and need to correctly handle screen orientation changes. Currently I use onConfigurationChanged for this purpose(in this method I need to change coordinates of my LWP screen elements. I use…
alexanoid
  • 24,051
  • 54
  • 210
  • 410
5
votes
1 answer

Remove continuous spawn sprite when touched

I am new with AndEngine. I just created a scene with many spawned sprites that come from above screen height in landscape mode. Now I want to remove a sprite when I touch on it. Problem is, when I touched the screen the most recent sprite is removed…
Shihab Uddin
  • 6,699
  • 2
  • 59
  • 74