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

how to display bitmap sprite in AndEngine?

I am new to AndEngine Game Development. I am trying to load and display a single sprite , But i got blank blcak screen without sprite on the screen. Here is the code: public class MainActivity extends SimpleBaseGameActivity { static final int…
Stack
  • 5
  • 3
0
votes
1 answer

Handle the jump speed of a sprite in Andengine

I'm a beginner in Andengine (Started 1 week ago :D ) and I decided to follow the full game tutorial by matim-dev which you can find here : http://www.matim-dev.com/full-game-tutorial---part-1.html Once finishing the tutorial, I wanted to change the…
Carried Louis
  • 47
  • 1
  • 6
0
votes
0 answers

AndEngine RenderSurfaceView NullPointerException

I am getting a NullPointerException in my menu_layout.xml file. I am extending a LayoutGameActivity class in order to use EditText. Before posting here I already googled a lot but had no luck fixing it. I also updated ADT like some suggested but…
0
votes
1 answer

AndEngine background scaling with zoom

I have a GameScene in which I used ZoomCamera, a background and a few "viruses". The problem is that when I pinchzoom in or out the background also scales, I do not want that, please…
0
votes
1 answer

OpenGL stencil (Clip Entity)

I am trying to use a sprite as clip-entity. This means I want that all it's child entities are clipped so that only the parts of the children that overlap the clip-entity (parent) are visible. I'm trying to do that using the OpenGL stencil function.…
sjkm
  • 3,887
  • 2
  • 25
  • 43
0
votes
0 answers

AndEngine Sound.play() decreases body's velocity

I am developing a platform game using AndEngine. Character keeps running and collect coins. I am playing sound when character collides with some coin. It works fine when coins are in horizontal sequence and are at some distance relative to each…
Khawar Raza
  • 15,870
  • 24
  • 70
  • 127
0
votes
1 answer

Box2D DynamicBody collision with KinematicBody

I've a Dynamic Body that collides with Kinematic Bodies being thrown at it.In a particular situation (a different kind of Kinematic Body lets say) I still want the collision detection by the ContactListener but without affecting the Dynamic Body…
GuilhE
  • 11,591
  • 16
  • 75
  • 116
0
votes
1 answer

AndEngine and rotate object

There is something what I can use to rotate object without ending? I want start game and start rotate sprite with some speed but I don't want to end rotate. There is any way to use: new RotationModifier(20f, 0, 360), but with no end of rotation? Or…
edi233
  • 3,511
  • 13
  • 56
  • 97
0
votes
1 answer

Change background colour as gradient

I'm using Andengine to create and android app, and I'm wondering if there is any possible way to change the background colour in a gradient fashion. I know you can create a gradient in Andengine and thats from one part of the screen to another I…
Jtino
  • 27
  • 1
  • 1
  • 9
0
votes
2 answers

How to prevent body from moving after collision [Box2D] [AndEngine]

I am making a game using AndEngine and Box2D. I am making a pong style football game and I want keeper to act like a static body when ball collides with it. When they collide keper moves too and it makes my game unplayable. I have tried to do…
Arda Kara
  • 501
  • 6
  • 24
0
votes
1 answer

AndEngine MultiTouch doesn't work

I am making a simple AndEngine game. It is gonna be commercial so I can't give you my full code but I am doing everything right but MultiTouch doesn't work. I am sure my phone supports multitouchs, it is a Z1. Here what I…
Arda Kara
  • 501
  • 6
  • 24
0
votes
1 answer

Make Sprite Draggable When Touched

Is there a way to make a sprite draggable but only when the sprite itself is touched? Currently i have my game ,which uses anengine, set up to where the sprite follows your finger ever time the scene is touched. If you touch the opposite side of the…
user3712476
  • 118
  • 1
  • 11
0
votes
1 answer

How to apply friction to all bodies moving in physics world [andengine]

I am making an android top down game. There are circle bodies moving on a table. I apply forces to them but they move forever. They never stop moving. I want them to act like they are moving on table. There should be a friction between ground and…
Arda Kara
  • 501
  • 6
  • 24
0
votes
2 answers

Bodies colliding multiple times in single contact [AndEngine]

In the game I'm developing, I have bodies (from the box2d extension) flying around. Some of these bodies collide with each other. The problem is that for every single contact the beginContact method in contactListener get called twice (at least).…
asherbret
  • 5,439
  • 4
  • 38
  • 58
0
votes
0 answers

levelLoader.registerEntityLoader() is giving error

If anyone downvote this question kindly tell the reason for downvote I am studying AndEngine and making demo project. I am making load level method final SimpleLevelLoader levelLoader = new SimpleLevelLoader(vbom); …
nawaab saab
  • 1,892
  • 2
  • 20
  • 36