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

learn more… | top users | synonyms (1)

-3
votes
1answer
199 views

JointDef Modify at Runtime

In my game, I want run time modification in object body so I want to modify the joint def according to situation. So provide comment for how to modify jointdef run time.
4
votes
3answers
4k views

Remove gravity from single body

I have multiple bodies in my game world in andengine. All the bodies affected by gravity but in that I want my specific body does not affected by the gravity. For that solution after research I found ...
0
votes
2answers
539 views

Undeviating bullet in AndEngine

I'm looking for a bullet that can collide with other bodies of the world but doesn't change direction according to collisions. I want the bullet to perform the collisions but without changing its own ...
1
vote
1answer
617 views

AndeEngine Parallax / Sprite Depth?

What I'm attempting to do is create a game in which a space ship explores a large area of space. I'm randomly generating placement of planets, space stations etc. I want to use the ...
-1
votes
2answers
746 views

Continuous Movement of gun bullet

I was using box2d for the movement of the body. When I apply gravity (0,0) the bullet continuously move but when I change gravity to the earth the behavior was changed. I also try to apply continuous ...
1
vote
2answers
801 views

Infinite time of rotation

I want the rotation of the sprite. So that I used RotationModifier, but in that I have to specify the time interval you want the rotation. But I want to create rotation which was infinite. So please ...
7
votes
2answers
4k views

How do I find the angle between two vectors?

I have 3 points on my screen: a = a point which is (c.x, 0) makes a line pointing straight up b = a user input touch, can be anywhere on the screen c = a moving object a _______.________ | ...
1
vote
2answers
3k views

Sprite collisions in android andengine

I'm developing a simple game by andengine. I have 10 balls which are moving randomly on screen.i'm importing the balls as picture in sprites.if they move at the same coordinate , they pass though ...
0
votes
2answers
1k views

Making body (box2d) a sprite (andengine) in Android

I can't make body (box2d) a sprite (andengine) and at the same time apply MoveModifier to sprite which is body. If i can make just body, it works namely the sprites can collide. If I apply just ...
1
vote
3answers
1k views

How do I scroll to follow my sprite in the physical world? [closed]

I am using andengine to make a game where a sprite (player) is going up across the stage, and I want the camera to stay centred on the sprite the entire time. This is my world so far: final ...
2
votes
2answers
665 views

Horizontal wrapping with AndEngine

How would one implement the effect of a sprite disappearing on one side of the screen and appearing on the other using AndEngine? Like in Kid Icarus, seen here at around 1:22.
-2
votes
2answers
1k views

Road parallax background

I am a beginner in game development. I want to create a parallax background that merges at the front and expands at the bottom. I'm sure there is a way to do this, but I'm missing something. My ...
1
vote
0answers
313 views

Which game engine is more worthwhile for mobile game development [closed]

I have been thinking of starting to learn mobile game development. I recently learned that there are three popular game engines available for android: AndEngine cocos2d-android libGdx you guys ...
2
votes
2answers
2k views

andEngine dynamic sprites

Ive just started with andEngine the past week and i only started learning java/android 3 weeks. I can use a for loop to add multiple sprites to the screen but when i try to check collisions on them ...
3
votes
1answer
2k views

AndEngine Moving a Connected Texture and Physics Body

In AndEngine, many times we create a TextureRegion for our sprite. We can move this region around the scene but when I connect that region to a physics body I end up being able to use either one to ...
2
votes
0answers
1k views

AndEngine Making Chase Camera Follow Player

I am playing around with the AndEngine Race Game example. I am trying to make the camera follow the car as the player moves around. The Tile Map is larger than the player's screen but the camera ...
4
votes
2answers
5k views

How can I save my game state so it can be resumed when my application resumes?

I've found that after resuming my game the whole engine is reloaded and application is reinitialized. I want to save engine state and in "onResume," resume the game process from where it left off. ...
4
votes
1answer
360 views

Clock hand, how much should I rotate the hand by every frame?

I've got a virtual clock. The clock consists of the actual clock sprite, and a hand to go over it. I'm able to set how long the clock duration is. Say I set it to: 5 seconds. While the clock time is ...
7
votes
3answers
2k views

Should I move the world or move the player?

I'm about to start developing a sidescrolling game where the players goal is to travel as far as he can in the horizontal axis before touching down. Note that I do not need to ever travel back on the ...
1
vote
2answers
2k views

How can I use an object pool for optimization in AndEngine?

I have read up on a tutorial that allows you to reuse sprites that are re-added to the scene such as bullets from a gun or any other objects using an ObjectPool. In my game i have a variation of ...
1
vote
2answers
868 views

Android Game, Blurring effect while moving camera

I have posted this issue on stackoverflow, but unfortunately nobody couldn't find solution, maybe someone here know this. I'm developing Side Scroll 2D Game, using AND ENGINE ...
1
vote
1answer
2k views

Andengine Traffic game: moving sprites along path on map

I'm developing simple traffic educational game like https://market.android.com/details?id=cz.allianz.krizovatky.android . When the player taps on car sprite, it started to move with other cars. If ...
2
votes
2answers
982 views

Ground for 2D AndEngine game with physics

I am using AndEngine to create a 2D Game for Android platform using Java and AndEngine. I have learned how to use Tiled editor to create tiled maps. The only problem I am having is that I don't know ...
8
votes
3answers
744 views

How should I structure my classes to allow for multithreaded simulation?

In my game, there are plots of land with buildings (houses, resource centers). Buildings like houses have tenants, rooms, add-ons, et cetera, and there are several values that have to be simulated ...
0
votes
2answers
2k views

How can I fix Dalvik conversion errors during the build of an AndEngine game?

Recently I started learning AndEngine for Android. I began by implementing its examples, but I am getting problem with conversion of assets to the Dalvik format. I read elsewhere that if this problem ...
2
votes
2answers
405 views

What causes “ETC1 cannot be resolved” errors when building AndEngine?

I just got the latest AndEngine code from Mercurial, added Android 1.6 to my Order/Export tab, and cleaned everything (including a "Fix" command as instructed by the console). Regardless of which ...
1
vote
1answer
501 views

How do I calculate logical velocity / direction?

I have a simple jBox2D (Java) implementation of a world with couple of Circle bodies that at the begining are static. I want to make them movable when the user touches the circle. But I want them to ...
6
votes
3answers
7k views

How to remove a box2d body when collision happens?

I’m still new to java and android programming and I am having so much trouble Removing an object when collision happens. I looked around the web and found that I should never handle removing BOX2D ...
1
vote
1answer
287 views

Why does this code work for a stationary object, but not a moving one?

I use the following chunk of code to make bullets that fire towards the player's ship: @Override public void onTimePassed(final TimerHandler pTimerHandler) { pTimerHandler.reset(); ...
2
votes
1answer
372 views

Why does my game freeze when I try and display a menu?

I make a MenuScene when my Game loads, which grabs some intro text from levelData and displays it and a button to start playing the level. When the MenuScene is created and displayed in ...
2
votes
4answers
4k views

How do I detect pixel-level collision using andEngine?

I'm developing a game for Android using andEngine, and I need to detect collisions only when two objects visually collide (not in blank space of the image). In J2ME, I'm able to do that using ...
4
votes
3answers
2k views

Does AndEngine have a way to manage scenes?

Does AndEngine have a way to manage scenes (for example, main splash, menu, options, main game), and should I use a different scene per activity?
5
votes
2answers
2k views

How do I place a progress bar in andEngine?

I am developing game using andEngine. I need to place a progress bar in my game to denote time remaining in the game. Is there a built-in method for doing this in andEngine? My searches only turned up ...