AndEngine is a free Open Source 2D OpenGL Game Engine for the Android platform.
2
votes
0answers
1k 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 ...
0
votes
2answers
1k 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
542 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
1answer
357 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
599 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
206 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 ...
0
votes
1answer
599 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 ...
6
votes
4answers
1k 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, ...
2
votes
1answer
1k 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
528 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.
0
votes
1answer
230 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
904 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 ...
0
votes
0answers
339 views
How to optimise Andengine's PathModifer (with singleton or pool)?
I am trying to build a game where the character find and follows a new path when a new destination is issued by the player, kinda like how units in RTS games work.
This is done on a TMX map and I am ...
2
votes
1answer
386 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
299 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
640 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 ...
4
votes
2answers
1k views
Rotation angle based on touch move
I want to rotate my stick based on the movement of the touch on the screen. From my calculation I did not able to find correct angle in degree. So please provide guidance, my code snippet for that are ...
4
votes
3answers
444 views
Box2d Collision problem
I'm not good with words so here's a picture to describe my problem:
In my game there is this big ball which the user can move on x-axis only. Now, if the ball is falling like the red one, it's ...
-3
votes
1answer
156 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
2k 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 ...
-4
votes
2answers
398 views
effect after bullet fire
I want glow like effect after the bullet fires from the gun. If whole solution will not possible then provide starting point for me so using that I can go ahead because I am new to andengine. After ...
0
votes
2answers
385 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
422 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
478 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
489 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 ...
5
votes
2answers
2k 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
2k 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
1answer
408 views
Making body(box2d) a spite(andengine) in android
I can't make body(box2d) a spite(andengine) and at the same time i wanna apply MoveModifier to sprite which is body.if i can make just body,it works namely the srites can collide.if i can apply just ...
0
votes
2answers
669 views
How do I scroll to follow my sprite in the physical world?
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
405 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.
-3
votes
1answer
888 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 ...
0
votes
0answers
271 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 ...
1
vote
2answers
892 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
1k 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
813 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
3k 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.
...
3
votes
1answer
287 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 ...
6
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
987 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
557 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
...
0
votes
1answer
1k 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 ...
1
vote
1answer
553 views
Ground gravity for 2d game Android
I am using AndEngine to create a 2d Game for Android platform using ecliplse java.
I have learned how to use Tiled to create tiled maps. The only problem i am having is that i dont know how to place ...
8
votes
3answers
603 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 ...
-1
votes
2answers
1k 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 ...
1
vote
2answers
374 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 ...
0
votes
1answer
407 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 ...
5
votes
3answers
4k 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
269 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();
...
1
vote
1answer
309 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 ...
1
vote
4answers
3k 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 ...
