AndEngine is a free Open Source 2D OpenGL Game Engine for the Android platform.

learn more… | top users | synonyms (1)

1
vote
1answer
425 views

What is difference between AndEngine's three Cameras

I am new to game development. After observing some AndEngine code snippets, I am trying to figure out which camera would be best suitable for my 2D game. Either it's BoundCamera, SmoothCamera or ...
1
vote
1answer
370 views

Pipe connection game algorithm - Java/Andengine

I am creating a game based on Pipe Dream/Pipe Mania using java/andengine for android. I have a square grid of tiles each representing a type of pipe. The player needs to swap tiles to connect the ...
0
votes
1answer
195 views

How do I draw a sprite on top of a video in Andengine?

I'm playing a video in Andengine on @Override protected void onSetContentView() {} However, when I place a sprite on the screen at some point in time, it is placed behind that video view. I want it ...
0
votes
2answers
124 views

Duration in ScaleModifier andengine

I want to scale an image before screen resume in AndEngine so I have applied the following code to my sprite: ScaleModifier scaleDrag1 = new ScaleModifier(1, 1, 0.7f); ...
1
vote
1answer
349 views

How should I generate the board for a match-3-style game?

I am trying to create a "match 3" game. I'm stuck figuring out a good algorithm to fill up the game board. My game's board is 8x8. EDIT: A few things: The board should always be solvable. for ...
1
vote
1answer
300 views

Max Row and Col for Animating Sprite in Andengine

I want to animate a Sprite in Andengine , I have used the following this.mSnapdragonTextureRegion = BitmapTextureAtlasTextureRegionFactory.createTiledFromAsset(this.mBitmapTextureAtlas, ...
1
vote
1answer
219 views

How to move a Entity without moving its children in AndEngine?

I have a Entity in AndEngine and when I move it, all child move together with it. Which is great. But, sometimes, I need to move it without moving its children. Is it even possible? And, if it is, how ...
0
votes
1answer
108 views

Physics don't apply on a unique body AndEngine

I am developing a game in AndEngine. So far I managed to create everything I wanted for my sprite that was connected to a BoxBody. I was rotating it, moving it, everything was great. I wanted my ...
0
votes
1answer
524 views

AndEngine: Painting on a canvas rather than composing image from objects

I'm trying to implement drawing a line with a finger, similar to a Pencil tool in image editors. From what I've found on AndEngine, it seems like the recommended approach would be to create a line ...
3
votes
3answers
974 views

How to make Box2D bodies automatically return to a initial rotation

I have two long Box2D bodies, that can collide while moving one of them around with MouseJoint. I want them to try to hold their position and rotation. Blue body is moved using MouseJoint (yellow) ...
1
vote
2answers
406 views

How do I make a Box2D object that makes objects passing through it slower?

I wish to have a sort of "slow motion" or "slow down" effect on a players character when they walk in a mud area, usually the character velocity is 3f constant in any one direction. The problem is I ...
1
vote
1answer
306 views

Making a 2D TMX tile map

Should there be a specific link between the characters height as well as the tile size for the tile maps? That is if a tile is 32x32 does that mean that a character sprite has to be the same size? ...
0
votes
1answer
572 views

Drawing Text on a scene

I am not sure if I am missing something but I was thinking about how text entities are drawn on a scene, are they drawn with an offset depending on the length of the text? I notice that when I add a ...
0
votes
1answer
237 views

Getting body position

I am using BodyA.getPosition().x and BodyA.getPosition().y to get the x and y vector of a body location so i may attach some text above its head, but the log of that position prints out something like ...
2
votes
1answer
707 views

AndEngine Scoreloop - java.lang.IllegalStateException: you are not calling from the main thread context

I am a very novice android developer but also created a game using andEngine successfully. Now I want to integrate Scoreloop and everything is fine with Leaderboard view and TOS view, except I am ...
0
votes
1answer
169 views

Version number not supported by gl2 in andengine

I am new to andengine. From various forums, i got to know that my system should support hardware virtulisation. I have installed "Intel X86" and my system didn't throw any problem regarding "HAX" now. ...
0
votes
0answers
652 views

ANDEngine : 3d rotation in Particle System

Im using ANDEngine and wants to create confetti particle system. But im unable to make flipping and rotation of confetti particle around z-axis Since andengine is 2d engine, it doesnot support that. ...
1
vote
1answer
782 views

Button - change texture after click

I need to make a button with texture. After button is pressed I want to change texture of button permanently. For example on/of sound button. I tried this but it changes image only while I hold ...
3
votes
1answer
518 views

AndEngine- OnAreaTouched

In my AndEngine-based game there are a few sprites on the scene. One sprite acts as a surface and the rest of them are placed on top of this surface. I want to take unique actions whenever any of the ...
2
votes
1answer
1k views

How do I pause Andengine, but still get input?

In my game when I pause the game, I'd like to display three options (Resume, Restart and Menu) so I did this after calling mEngine.stop(): Sprite resume = new Sprite(CAMERA_WIDTH/2, CAMERA_HEIGHT/2, ...
-1
votes
2answers
183 views

ParallaxBackground doesn't work well with sprite scaled

I'm trying to set a ParallaxBackground for my AndEngine's game. So I did this: Sprite montagne = new Sprite(0, 0, RM.montagneBackground, vertex); Sprite piante = new Sprite(0, 0, ...
0
votes
1answer
334 views

ParallaxBackground AndEngine

I'm new to game development andengine. I want to add ParallaxBackground but I don't know how to change background on player move. I'm using arrow for moving a player. Now my question is where I write ...
0
votes
1answer
328 views

Smooth Camera Zoom Factor Change

I have game play scene in which user can zoom in and out. For which I used smooth camera in the following manner. public static final int CAMERA_WIDTH = 1024; public static ...
0
votes
3answers
456 views

Box2D body jitters when colliding with static body

I am developing a game where a body is moved within the scene using touch. The scene has a boundary wall made up of static rectangular bodies. When I move the object along the boundaries, on ...
1
vote
1answer
496 views

GLES2-AnchorCenter branch has no org.andengine.util.color.Color

I am porting my game from GLES2 to GLES2-AnchorCenter branch. I am using import org.andengine.util.HorizontalAlign; import org.andengine.util.color.Color; import ...
3
votes
2answers
351 views

Word Search Game Issue

I am developing a game like word search. I have used AndEngine for this and for displayig grid of words I have used TiledMap. In this game, we need to join letters to make a word as we drag our ...
0
votes
2answers
1k views

Convert int to Color

I am right now developing paint application in andengine because some features are only possible with andengine. For this I have used color dialog box to use user selected color but that dialog box ...
1
vote
1answer
2k views

Setting Higher Z-Index for Sprite

For my game, I have to set highest z index for my sprite. At present, I wrote following code but didn't work for me. Sprite houseSprite = new Sprite(pX, pY, ...
1
vote
0answers
234 views

AndEngine doesn't fill correctly an image on my device [closed]

I'm learning about AndEngine a little bit, I'm trying to follow a tutorial but I don't get to fill the background image correctly, so, it's just appear in one side of my screen. My device is a Galaxy ...
2
votes
2answers
1k views

Reloading Resources on Resume

I'm having a problem with my game. If I press the "Home button" the game is paused... everythings fine, but if I then go back to the game all the resources are reloaded before I can continue the game. ...
3
votes
0answers
133 views

How to make the Angry Birds “shot arch” dotted line? [duplicate]

I am making a game that includes 2D projectile flight paths like that of Angry Birds. Angry Birds employs the notion that a previous shot is shown with a dotted line "arch" showing the player where ...
2
votes
1answer
419 views

Black borders in Andengine

I am using Andengine and when I start the examples there are black borders on left and right of the screen. Like this: 10000001 10000001 10000001 where 1 is black and 0 is not black. On my phone ...
-1
votes
1answer
653 views

Continuous increase in heap memory in Android game [closed]

For my Android AndEngine game, I used the scene based approach. Game contains more graphics so I need to load and unload those graphics multiple time so that game runs smoothly. But doing this, I ...
0
votes
1answer
199 views

Font disappear after reloading

As this post title suggest, font of the scene become disappear when same scene call more than two time. Following code I used for creating font. mNumberFontTexture = new BitmapTextureAtlas( ...
1
vote
2answers
812 views

“Non-additive” alpha blending in OpenGL ES 2.0, Android (AndEngine)

I have several monochromatic sprites and I render them with alpha = 0.25 (all of them the same value). I want to "paint" with them, so when they overlap, the alpha won't be added. I am not sure if I ...
1
vote
1answer
222 views

Creating big scene and little size chasing camera

I would like to create a climb based game, so I need to have a big scene and a camera that cover only a little part of it and chase my player. This image explains easier what I want: How can I do ...
2
votes
2answers
123 views

AndEngine: edit elasticity on action

I'm making a game for Android with AndEngine. It's going quite well, but now I'm stuck on something. My main character has a elasticity set in its fixturedef so it bounces around throughout the ...
2
votes
2answers
558 views

Logic For Puzzle Game - How do I do it?

What is the game all about? It's a puzzle game. I am using AndEngine to build it on Android platform (currently). I have divided the game into various World, with each World containing various ...
0
votes
0answers
43 views

SingleSceneSplitScreenEngine to Normal Engine Conversion

For my game, I want radar like functionality so I implement this thing using SingleSceneSplitScreenEngine class as mention in the following link. Small Box View All the code I have used mention in ...
2
votes
1answer
1k views

Is it possible to design Android game(AndEngine) levels using XML? [duplicate]

I am developing a game. In the game there is a lot of levels. Is it possible to design game levels using XML? Or what are different ways to design game levels? Please help me. Give some link or ...
2
votes
1answer
2k views

AndEngine - Moving Rectangle using Accelerometer

I'm learning how to create games with this great engine and I'm trying to put my knowledge in order to create a simple game. My first goal is to make a Rectangle moving using accelerometer and create ...
1
vote
2answers
93 views

Touch Coordinate in onManageUpdate method

I want to get touch coordinate in onManageUpdate() method. So how to perform that one? Because onSceneTouchEvent method simulation is some what slow so I could not able to get each coordinate in move ...
0
votes
1answer
277 views

Clip View for Game Play Scene

This is a small basic tool for the game. I want small box that reside on one of the corner of the scene. In which I want to show preview of whole game scene. I have read all the thing and try as much ...
0
votes
1answer
192 views

Is there an easy way to add TMX Object Layer to a Scene in Andengine?

I have a TMX file with a MAP layer and Object layer (called decorations, with property type = "decorations"). Is there an easy way to add the whole layer to the scene with all objects? Or do I have to ...
0
votes
1answer
160 views

Roulette Table Ball Movement Creation

I am developing following type of game Roulette Royale. I am basically ready with wheel and number table. When user move wheel table then ball also move on that table and stop at particular number ...
1
vote
2answers
357 views

Sprite not rotating around its centre after Scaling at its centre

If I scale a sprite at its centre, then try to rotate it around its centre as well, the rotation does not occur around its centre. If you need to rotate, for example a scaled ball,the way its working ...
0
votes
3answers
1k views

Fruit Ninja Swipe

I now have nearly completed a Cut The Rope type game. I need only a swipe mechanic to cut the rope, both the logic and the visual effect. Suggestions would be most welcome. I only need a concept for ...
-1
votes
1answer
175 views

Child Object Placement based on Parent Object Angle

I want to perform object placement based on parent object position. For example, I have chest and head object. I want when I rotate chest object then as per chest rotation head object also rotate and ...
2
votes
2answers
719 views

How can set vibration option with my game in android? [closed]

I am using AndEngine to develop an Android game and I want vibration to be triggered when an enemy hits a player. How can I implement this into my game?
0
votes
1answer
591 views

Why might a body suddenly stop while moving on continue platform?

I have a 32x32 sprite and I make some to be platform like this for (int i = 0; i < 15; i++) { attachChild(new Ground(32 * i, 200, regPlatform, vertexBufferObjectManager, physicsWorld)); } ...