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
4
votes
2 answers

And Engine polygons

I´m using AndEngine for a game development and my problem is that I don´t know how exactly I should set a polygon body to a sprite. I tried code mentioned here http://www.andengine.org/forums/gles1/complex-collision-surface-t5593.html#p24822 but no…
vandus
  • 3,248
  • 3
  • 30
  • 44
4
votes
1 answer

Save game state after pause. AndEngine

i've found that after resuming the game all the engine is reloaded and application is reinitialized. I want to save engine state and in "onResume" resume the game proccess. I've tried to save all the engine (mEngine) and then after resume the game…
dilix
  • 3,761
  • 3
  • 31
  • 55
4
votes
1 answer

AndEngine, Move Sprite smoothly using Accelerometer & PhysicsWorld

Using AndEngine, Im trying to move a sprite (ball) with the accelerometer which is supposed to bounce of walls and hit other obstacles. so far I've found the following two methods. public void onAccelerometerChanged(final AccelerometerData…
Waqar Ahmed
  • 258
  • 1
  • 5
  • 16
4
votes
3 answers

Port Andengine game to other platform?

I'm planning on writing a multiplayer game with Android as my primary focus as far as OS/platform, but I would like the ability to port the game to at least the web. I'm looking into Andengine as I'm just starting out with java and android and it…
jreed121
  • 2,067
  • 4
  • 34
  • 57
4
votes
2 answers

Power Button Creating Issue in AndEngine Game

I developed a game in andEngine which is almost final. Only problem I am facing now is that when during GamePlay if power button is pressed and Game is resumed again It starts from star. Suppose I am playing Level 6 and I pressed power button when…
Jawad Amjad
  • 2,532
  • 2
  • 29
  • 59
4
votes
1 answer

Capturing double taps in Android

I am capturing the event of onSceneTouchEvent using AndEngine. What i want to do is not allow it to capture the user double tapping the screen. Is there anyway to detect double taps or disable them? Thanks
coder_For_Life22
  • 26,645
  • 20
  • 86
  • 118
4
votes
2 answers

Making a sprite jump when user taps on the screen?

I am using andengine to implement a sprite being able to be dragged across the screen using this. So what i want to do is when the user taps any where on the screen make the sprite jump. or move up and then move down. What is the best way to go…
coder_For_Life22
  • 26,645
  • 20
  • 86
  • 118
4
votes
1 answer

How to rotate a sinusoid on the axis

I'm programming a game in 2D. What I achieved is to move a sprite on the basis of a custom path. The path may be represented mathematically as: y = sin (x) ..So the movement is a wave. I wanna to rotate this wave in such way so the movement is not…
Claudio Ferraro
  • 4,551
  • 6
  • 43
  • 78
4
votes
2 answers

How to manage multiple scenes / screens on AndEngine for Android

Do you know if there is any tutorial or example out there showing how to handle multiple screens / scenes of a game? For example, imagine I have a game with this structure: Cover Main menu Gameplay Credits To put allthe code in just one java file…
xus
  • 2,587
  • 8
  • 31
  • 44
4
votes
2 answers

AndEngine getting error: Supplied pTextureAtlasSource must not exceed bounds of Texture

im new to android gaming and started andengine and facing problem while using createTiledFromAsset the code where im getting problem is @Override public void onLoadResources() { mBitmapTextureAtlas = new BitmapTextureAtlas(128, 128, …
Umar Qureshi
  • 5,985
  • 2
  • 30
  • 40
4
votes
1 answer

Andengine weird texture issue

I'm trying to develop a game using Andengine. It's been a while since I last worked with andengine, so I downloaded the latest andengine.jar. The Texture class changed to BitmapTextureAtlas So I used BitmapTextureAtlas instead of texture.…
Rizen
  • 123
  • 1
  • 7
4
votes
1 answer

android andengine examples

I'm playing with the checkout of... [1] http://code.google.com/p/andengineexamples/source/checkout I've checked out the project etc but it appears to almost be looking for a lib as a lot of the imports appear to be broken. Has anyone ever imported…
David
  • 19,577
  • 28
  • 108
  • 128
4
votes
3 answers

Android Andengine poor texture quality

The problem: poor texture quality in android app written with Andengine(wraps opengl), especially on gradients which appear as steps in few colours. Problem occurs on real and virtual device Settings: default texture, fullscreen, native resolution,…
janst
  • 172
  • 10
4
votes
2 answers

Confused about Andengine Coordinate system(s)

When I create a sprite at (0,0) and it is centered on the screen and I ask the camera what it's center is (getCenterX and getCenterY) it says (640,400). I am pretty new with Andengine so there's clearly something basic about coordinates that I am…
pitosalas
  • 10,286
  • 12
  • 72
  • 120
4
votes
2 answers

AndEngine: collision of two sprites

I am developing a small Android game. Before I started using AndEngine, I used the Canvas object and draw everything on it. For testing if two bitmaps collides with each other I checked if their bounding boxes overlap. In case of this, I checked if…
Basic Coder
  • 10,882
  • 6
  • 42
  • 75