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

Background Sprite not displaying on attachChilld call

I am trying to create a background image for a main menu using a Sprite. attachChild(new Sprite(0, 0, resourcesManager.menu_background_region, vbom)); The line above is my call to attach the sprite to the scene. menu_background_region is my…
Jared
  • 394
  • 4
  • 15
0
votes
2 answers

andenginephysicsbox2dextension.jar is not added

i use andengine GLES1.i add andengin.jar to my program . i want add andenginephysicsbox2dextension.jar but i get force close. my error is : 05-12 19:43:58.639: E/AndroidRuntime(11740): Caused by: java.lang.UnsatisfiedLinkError: Couldn't load …
zeinab21
  • 1
  • 1
0
votes
2 answers

AndEngine Font loading: NullPointerException

Ok, I've been following this tutorial and implementing my game. But, I'm getting a null pointer exception on the font object..I've loaded the font.ttf file in the assets/font folder and here's the code. Kindly help. Thanks... In my gameScene class…
user2125722
  • 1,289
  • 3
  • 18
  • 29
0
votes
1 answer

Parallexing background upside down and not fullscreen

I'm building a live wallpaper with Andengine and I am having troubles starting it off. I cannot seem to get a parallexing background working. The end result of my code results in the assets upsidedown on the top right of the screen. public class…
Darussian
  • 1,573
  • 1
  • 16
  • 28
0
votes
1 answer

Detect the screen boundary and prevent the sprite from going beyond it in AndEngine

Currently, I am doing this @Override public EngineOptions onCreateEngineOptions() { mCamera = new BoundCamera(0, 0, CAMERA_WIDTH, CAMERA_HEIGHT); EngineOptions engineOptions = new EngineOptions(true, ScreenOrientation.LANDSCAPE_FIXED, new…
Kona Ahmed
  • 65
  • 2
  • 8
0
votes
1 answer

Andengine problems with music in the game

I write some code in response when my player is hit by the monster in my game. when monster hit my player, it will shout. It is fine at begin but when the sound plays too much time or too frequently, the sound shut down and so as my background…
0
votes
1 answer

move a body to correct direction when swipe

I wanna move a physics body(Duck) to accurate direction when user swipe the body. I can detect the scene swipe event. But how to connect with my body, when swiped. My code: In my game Scene Class >> // called in scene constructor private…
Shihab Uddin
  • 6,699
  • 2
  • 59
  • 74
0
votes
1 answer

Physics editor not allowing scaling sprites ( Andengine)

In my game I used Physics editor for a sprite. And I scaled it to large size like this sprite.setScale(screenwidth/20 / sprite.getWidth()); and added it to the physics body like this Body = PhysicsFactory.createBoxBody(physicsWorld, sprite,…
Sandeep R
  • 2,284
  • 3
  • 25
  • 51
0
votes
1 answer

A simple countdown number screen to andengine game

I am working on andengine framework, What I want is a simple scene that display countdown numbers text from 1,2,3 or 3,2,1 when play button pressed and before the game scene (between play button and GameScene) start. I am bit confused, do I have to…
Mohtashim
  • 359
  • 1
  • 3
  • 15
0
votes
2 answers

AndEngine GLES2 - avoid reloading Texture onResume

is it possible? Because onResume I get (example log): I/dalvikvm-heap﹕ Grow heap (frag case) to 19.304MB for 8294416-byte allocation I/dalvikvm-heap﹕ Grow heap (frag case) to 27.213MB for 8294416-byte allocation I/dalvikvm-heap﹕ Grow heap (frag…
Błażej
  • 3,617
  • 7
  • 35
  • 62
0
votes
1 answer

set angular velocity not working in andengine

I am trying to do flappy bird like game in andengine. I achieved everything and everything worked out but the rotation is not working. setangularvelocity is not working my code is as follows onscenetouch I am giving linear velocity as…
Sandeep R
  • 2,284
  • 3
  • 25
  • 51
0
votes
1 answer

how to know if collision happened at the right side or bottom side of the body

I am creating an andengine game (with reference to this tutorial http://www.matim-dev.com/full-game-tutorial---part-1.html), where my main charachter walks and gets hit by the falling bricks from the top. He dies if he is hit by a falling brick. But…
Sandeep R
  • 2,284
  • 3
  • 25
  • 51
0
votes
1 answer

Sprite attachchild is not working

I am trying to attach a child sprite with another sprite. There is no error in the logcat, but only parent sprite is getting displayed on the screen. Basically I have a car and I want to attach another sprite as a roof of that car, so I can change…
Himanshu
  • 573
  • 1
  • 9
  • 15
0
votes
1 answer

Application shows blank screen on second launch (after onDestroy is called)

was wondering if you could help. I'm under the impression that Android is not fully killing my application when ondestroy is called. This is because on the second launch I just end up getting a blank screen. I have read that this is common and you…
user1953208
  • 169
  • 1
  • 11
0
votes
1 answer

Remove Sprites Out of Screen

I have a slight problem where i might need some help/ideas. I know the generic check whereby i set the onUpdate to check if my sprite is out of the screen via If Sprite.getX > camera width and remove it. However, that will not work in my case. My…
user2587774
  • 125
  • 9
1 2 3
99
100