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

How to get a screen capture at double resolution?

If your phone's display size is 320x480, then AndEngine performs screenCapture() at the same 1:1 resolution. I tried changing the surface size... I tried generating the camera at double resolution... I tried scaling the mRenderSurfaceView.... But,…
CodenameLambda1
  • 1,299
  • 7
  • 17
10
votes
2 answers

Why am I getting: threadid=3: reacting to signal 3 and game freeze (AndEngine)?

I'm using AndEngine to make a game that deals with a lot of moving sprites. It's inconsistant when, but eventually I get a message in the log cat (threadid=3: reacting to signal 3) and the game freezes. What does this error mean? I've narrowed down…
rphello101
  • 1,671
  • 5
  • 31
  • 59
9
votes
1 answer

Android Websockets onMessage() never being called even on connection

I'm using websockets to make a multiplayer game and I need to send multiple types of data across the server but when I connect to the server it's supposed to send back a name and number ("type") and ("data") respectively from the websocket library…
AzKai
  • 317
  • 1
  • 2
  • 12
8
votes
2 answers

64Bit Version for AndEngine

I have to provide a 64 Bit Version of my Android Game which is using AndEngine in Google Play Store. The offical github repo of AndEngine doesn´t provide a 64 bit version of the library. Does anyone have an idea how to convert the library to 64 bit?…
Jonny Right
  • 528
  • 4
  • 10
8
votes
1 answer

AndEngine RenderTexture Exception: GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT

I have developed an Android game which is played by many people. One user out of 100-200 faces an Exception that I cannot make any sense of. I use a RenderTexture which throws the following Exception when I try to initialize it: Fatal Exception:…
sjkm
  • 3,887
  • 2
  • 25
  • 43
8
votes
1 answer

BaseGameActivity.runOnUpdateThread() vs. Entity.registerUpdateHandler()

Is there any difference if I execute a Runnable with runOnUpdateThread() or I register an update handler into an Entity and execute the code with that? I would like to remove a Sprite from the Scene with Sprite.detachSelf(). In this case the…
albundyszabolcs
  • 281
  • 1
  • 3
  • 6
8
votes
9 answers

Android Toast Messages not working

I'm developing a game via Andengine for Android. I have MainActivity class and GameScene class. I use Toast messages in GameActivity. And it is working. Toast.makeText(this, " Hello World", Toast.LENGTH_SHORT).show(); So I wanna use Toast messages…
user3076301
  • 113
  • 1
  • 1
  • 6
8
votes
7 answers

Samples on AndEngine

I want to learn AndEngine. How should I start? I don't see any good examples. I even tried finding the downloadable source code for AndEngine and MagneTank but no luck.
ivesingh
  • 888
  • 3
  • 12
  • 30
8
votes
3 answers

Terrain curve to array of points

In my 2D game I'm using graphic tools to create nice, smooth terrain represented by black color: Simple algorithm written in java looks for black color every 15 pixels, creating following set of lines (gray): As you can see, there's some places…
Adrian Adamczyk
  • 3,000
  • 5
  • 25
  • 41
8
votes
1 answer

Pass additional data to fragment shader through VBO - DynamicSpriteBatch

I'm learning opengl shaders with AndEngine , my goal is to make DynamicSpriteBatch with some lightshader where light position will be passed throught vbo to each draw call in spritebatch so i can manipulate light source on every sprite. So i have…
Paweł
  • 2,144
  • 1
  • 18
  • 25
8
votes
3 answers

in Android Manifest

I'm a newbie for Android and I need help regarding this issue. I am developing a game using Eclipse. In my project, I added AndEngine and AndEngine Augmented Reality as libraries. I was testing the project out in my Android device, every time I tap…
Monica Negapatan
  • 251
  • 1
  • 14
  • 29
8
votes
2 answers

Android libc.so crash?

I'm using AndEngine with the PhysicsBox2DExtension to make a game. My game keeps crashing and I get this in the unfiltered LogCat: 07-06 13:25:27.266: I/DEBUG(19582): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** 07-06…
rphello101
  • 1,671
  • 5
  • 31
  • 59
7
votes
1 answer

Displaying Ad In AndEngine

I am trying to display an advertisement using Greystrip in AndEngine. I cannot figure out how this is done because it doesnt use a Layout to inflate views, but yet sprites. i use BaseGameActivity to create my application for each scene i would like…
coder_For_Life22
  • 26,645
  • 20
  • 86
  • 118
7
votes
1 answer

body.setTransform does not work inside contact listener (andEngine and box2d)

I'm trying to move player body while contact with teleport but setTransform isn't executed.This is my contact listener mPhysicsWorld.setContactListener(new ContactListener() { @Override public void beginContact(Contact contact)…
Greg
  • 1,152
  • 1
  • 12
  • 28
7
votes
2 answers

What is maximum size of texture (Andengine)

What is maximum size of texture that should be used in andengine. I used this.diamondTexture = new Texture(2048, 512, TextureOptions.BILINEAR_PREMULTIPLYALPHA); When loading in device(HTC G1 T-Mobile) it shows blank screen. After reducing the image…
JohnRaja
  • 2,377
  • 6
  • 26
  • 47