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

learn more… | top users | synonyms (1)

3
votes
2answers
2k views

Detect multitouch (two fingers touch) on a sprite to apply pinch zoom behaviour

I am using andengine, want to move, zoom and rotate multiple sprites individually on a scene. I have achieved "move" but for pinch zoom i am unable to get the event to two fingers' touch. Below is the ...
1
vote
3answers
578 views

Path Modifier in Tower Of Defense Game

I implemented PathModifier for path of each enemy in my tower of defense game. So I applied fixed time to path modifier in that enemy complete their path. Like following code describe. new ...
3
votes
4answers
3k views

How to move a sprite automatically using a physicsHandler in Andengine?

I use a DigitalOnScreenControl (knob with a four-directional arrow control) to move the entity and the entity which is bound to a physicsHandler. physicsHandler.setEntity(sprite); ...
3
votes
1answer
878 views

How to rotate a sprite using multi-touch with AndEngine?

I am new to Android game development. I am using AndEngine GLES-2. I have created a box with a sprite. This box is now draggable by using the code below. It works fine. But I want multi-touch on ...
0
votes
1answer
333 views

Isometric projection bad coordonate

I have a 2D map, for each element I apply this isometric projection to place my Sprite //Element e; float[] f= projection(e.getX(), e.getY() ,z); // x and y represent Sprite Coordonate ...
0
votes
0answers
422 views

can it be done with 2D engine or is it real 3D? [duplicate]

Possible Duplicate: How should I sort images in an isometric game so that they appear in the correct order? My isometric game looks flat; how can I improve this? I'm working with ...
1
vote
1answer
1k views

Creating Transparent Game Menu Items using AndEngine

I'm trying to create a Game Menu which contains some Menu Items like New Game Multiplayer Options Exit I want to make this Menu Items Transparent. Only Text in White color should be visible. So i ...
2
votes
2answers
2k views

AndEngine Sprite position

I had noticed the AndEngine a few days ago, and I tried to create basic game with a few Sprites.Sure, the engine makes the development process much more easier.However I found the sprite lacking a ...
3
votes
1answer
1k views

Move Background in AndEngine for a Racing Game

I am new to game development and AndEngine. I have small query about racing game. I am going to develop a bike racing game. For bike racing game we will move the background or the player. I am tried ...
2
votes
1answer
751 views

How to make the game wait for an animation to finish?

I'm teaching myself andengine while trying to make a match-3 puzzle, so far I have a grid of gems that I populate and can move then around. Matching gems and new gems falling is working already. My ...
-1
votes
2answers
305 views

Single and Double Jump with single button.

I want to make Single Jump on Single Tap and Double Jump on Double Tap. My problem is that if I make double Tap on ground then it’s fine but if I make first Tap on ground and second Tap in Air then ...
2
votes
1answer
132 views

How to manage my model

I have in my model, a list of Classes : Player, NonPlayerCharacter, Monster, Item, NonMovableItem etc With AndEngine I've a list of sprite for each piece of my model, How can I manage the ...
1
vote
1answer
364 views

AndEngine Box2d game

I'm developing a 2d survival shooter using Box2d extension and I've got some questions: I have two AnalogOnScreenControls. Their listeners modify both sprites and bodies. I receive TouchEventPool ...
1
vote
1answer
757 views

AndEngine player, background and camera

I'm developing a 2D shooter using AndEngine. At the moment I'm trying to make the camera follow the player. As I've understood the common approach is to use the SmoothCamera zooming it and setting the ...
1
vote
2answers
590 views

How do I add AndEngine documentation in Eclipse?

I am very new to AndEngine. I have just downloaded the full documentation file, but I can't attach it to Eclipse. How can I do that?
1
vote
0answers
337 views

Wheel Joint Implementation in AndEngine

I am currently developing car game in AndEngine. In which I was using revolute joint for car wheel and chassis attachment. But my friend suggest me that use wheel joint for that purpose for better ...
0
votes
1answer
2k views

rotate sprite and shooting bullets from the end of a cannon [duplicate]

Possible Duplicate: How to Align Gun with Bullets Hi all i have a problem in my Andengine code, I need , when I touch the screen, shoot a bullet from the cannon (in the same direction of ...
5
votes
1answer
851 views

Smooth pixels while rotating sprite

I just started with andengine, so this maybe gonna be silly question. How to make my sprites more smooth while I rotate them? Or maybe it because this is screenshot from tablet? Thanks JohnEye it ...
0
votes
2answers
213 views

collideWith Call Back Method

In my class, I extend Sprite class. I override one of the method collideWith(). But my problem was that when current sprite collide with other sprite it does not call the call back method ...
2
votes
3answers
898 views

Rotate Body From Corner

I want to ask that how to rotate body from corner? movableBeam.getBeamBody().setTransform(movableBeam.getBeamBody().getPosition(), angle); The above line of code rotate the beam from center that I ...
2
votes
1answer
611 views

RagDoll in AndEngine

I want to create a RagDoll body in andEngine which can run and jump over different jumpObjects. Can any one give a nice tutorial on how to create RagDoll body and how to move it, like jump and ...
3
votes
1answer
2k views

Andengine. Put bullet to pool, when it leaves screen

i'm creating a bullet with physics body. Bullet class (extends Sprite class) has die() method, which unregister physics connector, hide sprite and put it in pool public void die() { ...
1
vote
1answer
3k views

Problem switching Scenes in AndEngine [closed]

I am Developing a game in AndEngine Gles2. I have splash scene, loading scene, menu scene and Level1 scene. I am using a Screen Manager to manage all scenes so I can easily switch between splash, ...
2
votes
1answer
221 views

how to set usermassdata of dynamic body

How to set the user mass data of dynamic body in andEngine. My problem is that in my game when i increase the speed of running player, the player on jump cover very long distance with x-axis. This ...
0
votes
1answer
1k views

AndEngine: How to add multiple fixtures into body?

I want to create a custom body which have very random shape like a table. So how to add/combine multiple fixtures into a body?
1
vote
1answer
1k views

How to make an Alert Dialog “Rate my game” for my game

I wonder if anyone can help me on how to make an alert dialog which makes user rate the game from inside the game itself or taking the user to google play to rate. Please help. I'm using andengine.
2
votes
1answer
3k views

AndEngine sprite movement

I want to ask that I have a player in my game. I may walk. I have a image which has five different frames for walk and two frames for standing position. I want to ask that how can I change the images ...
4
votes
1answer
1k views

AndEngine: Density, Elasticity, Friction, Gravity concepts

I am new to AndEngine. I have seen some physics examples from AndEngine Example package. I want to know the role of density, elasticity, friction and gravity while implementing physics. How they ...
1
vote
1answer
1k views

AndEngine Physics: Shape rotating but not updating physics effects

I was looking at PhysicsExample from AndEngine's Examples. I made the following change that I added a vertical line shape and created a fixture for it. Then I registered a rotation modifier for that ...
-1
votes
1answer
356 views

Collision between AnimatedSprite and Rectangle null pointer error

I'm trying to detect a collision between an AnimatedSprite and the Rectangle floor. When they collide, I want the sprite to be removed. However, I keep getting a null pointer error. Am I doing this ...
0
votes
3answers
2k views

Using multiple sprite sheets for same object AndEnginge

I have multiple sprite sheets for my object(Parrot) like eating, moving left to right, right to left and much more. I am using AndEngine gles2.0. How should I implement it? Every time I have to use ...
4
votes
2answers
2k views

Making color of sprite darker or lighter

Is there any way to make a sprite darker or lighter in AndEngine? I dont want to use the alpha thing. Nor I want to loose the texture/design of the image.
0
votes
4answers
1k views

AndEngine GLES2 - getting Black screen on emulator 4.1

I'm new in andengine . I create following code public class MainActivity extends BaseGameActivity { static final int CAMERA_WIDTH = 800; static final int CAMERA_HEIGHT = 480; public Font mFont; ...
6
votes
2answers
686 views

Show path of a body of where it should go after linear impulse is applied

I am making a game with Andengine and Box2D. I have a dynamic body and I apply linear impulse on the body to move it around when the user have touched the screen. Now I want to show the path where ...
3
votes
2answers
370 views

How create a respawn area in a tiled map

I'm creating a RPG game, I need to create a monster respawn area like the Pokemon games where if I walk through the long grass areas a Pokemon can appear. I already created the battle scene, I've seen ...
2
votes
1answer
2k views

Best practice to use Sprites in a game using AndEngine GLES2

Currently I am having static reference to all my sprites and loading and initializing them in my OnCreateResource mthod of SimpleBaseGameActivity, But now I have to override onAreaTouched listener on ...
1
vote
2answers
3k views

Pixel perfect collision detection between sprite and animated sprite

I am trying to make a collision between a sprite and an animated sprite. The animated sprite is the main character of the game. The problem I am facing is that when another sprite collides with the ...
-3
votes
2answers
967 views

How to fire a bullet in a specific direction?

I am developing an Android game. I have problem with bullet firing. It's a space ship that has to fire bullets but right now it's firing in a random direction. I have to fire a bullet to the enemy ...
0
votes
2answers
816 views

Setting Anchor Point

I want to set anchor point for the sprite like cocos2d has done for their implementation. I do not found any thing like that in andengine so please provide guidance on that. I want to move the sprite ...
3
votes
1answer
877 views

How to load data for specific level at runtime?

I'm trying to create a game with many levels loaded from XML files. In my game I have many objects in each level. At present my game contains 20 levels, and I load all the textures at once on ...
0
votes
1answer
360 views

Engine Start and Stop Show Abnormal Behaviour

In my game, when I pause the game using mEngine.stop() it works perfectly but when I press resume button that has code mEngine.start() it provide some movement to the physics body. So the created body ...
1
vote
1answer
1k views

RevoluteJoint Stop Rotating when Some Physics Body Collide in Andengine + Box2d?

I am making a Game from andengine + box2d in Which i am using RevoluteJoint in that case i am facing some problem that when physics body or Sprite Collide with this Revolute joint body then Revolute ...
7
votes
4answers
2k views

How do I make my rain effect look more like rain and less like snowfall?

I am making a game in that game I want a rain effect. I am little bit far from this right now. I am creating the rain effect like below: particleSystem.addParticleInitializer(new ColorInitializer(1, ...
3
votes
2answers
3k views

How do I set a touch listener in a child scene in AndEngine?

In my game, I want to implement touch listener for my child scene objects. Basically I tried all the possible way to implement this that I have usually done for my normal scenes, but those methods do ...
-4
votes
2answers
966 views

How can I create a rain effect?

I'm making a game in which I want a rain effect, like rain is coming and game play normally.
1
vote
1answer
490 views

Change density of the body dynamically

In my game, I want to change density of my body object when it collide with other objects. I found something like following to change density but further I could not able to find any hint for this. So ...
1
vote
1answer
2k views

Particle Effect Completion

In my game I use particle effect for various purposes. In that I detect the completion of the particle effect. Basically I want to do something after completion of the particle effect. But the problem ...
2
votes
1answer
594 views

Particle effect after the bullet

In my game, I fire a bullet from the gun along with that I generate a particle behind the bullet so that I look like fire effect after the bullet. But my problem is that the position I got from the ...
2
votes
2answers
409 views

Ragdoll continuous movement

I have created a ragdoll for my game but the problem I found was that the ragdoll joints are not perfectly implemented so they are continuously moving. Ragdoll does not stand at fix place. I here ...
2
votes
2answers
876 views

Box2d debug render

How can I render the body and joints in the physics world? During research I found the class called Box2dDebugRenderer. But when I put it into use it was full of errors. I do not found some classed in ...