AndEngine is a free Open Source 2D OpenGL Game Engine for the Android platform.
0
votes
1answer
32 views
Get position of Fixtures
I'm constructing a Body (a box2d body using AndEngine) using multiple Fixtures and later I need to get the world position of these Fixtures.
Currently I am trying something like this;
// ...
1
vote
1answer
71 views
Change the shape of body dynamically
I have a problem where i have a ballon which i need to continuously inflate and defalte in update method, I have tried to used setScaleCenter but it is not giving desired result.
Below is a code i am ...
0
votes
1answer
49 views
AndEngine - Performance problems with many entities
I'm developing a rolling scene based game I'm loading all the entities from a XML file and create them in the Loading Scene recently I increase the game width , and by doing so , in the whole level I ...
5
votes
2answers
2k views
How do I support variable screen ratios using AndEngine?
When displaying a background, AndEngine produces black bars above the image on certain devices. How do I support variable screen ratios for different devices using AndEngine?
0
votes
1answer
652 views
How to attach a sprite to a TMXTiledMap at a particular coordinate, in AndEngine?
I am trying to add a sprite at a "grid" location on the tiled map. The TMX tiled Map is like a grid, and you can access the size of the grid by calling mTMXtiledMap.getTileRows() and ...
2
votes
3answers
1k 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 ...
0
votes
1answer
113 views
On Screen Coin Animation
am working with side scrolling skater game. I want to perform coin animation such that as player collect coin it moves upside and attach with currency sprite.
My main character and coin present in ...
1
vote
1answer
70 views
AndEngine Foreground Sprite
I'm developing an Android game and have some troubles: I want to add some foreground sprites, that must obstruct my player.
Se the following example: Its a screenshot from "Shinobi 3". We can see ...
2
votes
1answer
77 views
AndEngine GLES 2 Animate Character [closed]
I want to animate my character in game. My graphic animator prepare for me three options.
Frame-by-frame by this is over 9MB for one animation. With TextureSpriter 4-5MB.
Spriter but I can't find ...
-1
votes
0answers
21 views
Andengine rube loader
I took a look on those 2 project that I found in here:
AndEngineJb2dJson
AndEngineRubeLoaderExtension
As some of you know I'm developing a rolling scene based game
I'm loading all the entities from ...
0
votes
0answers
17 views
AndEngine: image partially disappear on finger move
I am new to andengine and I want to create an app like that:
I have 2 images one on other now what I want is if I move my finger on upper image It should partially disappear only from the position ...
-1
votes
1answer
64 views
Combine Two Shader Program [closed]
For my android application, I want to apply brightness and contrast shader on same image.
At present I am using gpuimage plugin. In that I found two separate program for brightness and contrast as ...
3
votes
1answer
539 views
AndEngine; Box2D - high speed body overlapping, prismatic joints
I'm trying to make good suspension for my car game, but I'm getting nervous of some problems with it.
At the beginning, I've tried to make it out of one prismatic joint/revolute joint per one wheel ...
0
votes
0answers
34 views
sprite reset method not working in update thread(andengine)
I have sprite array with length of 8 and I am trying to reset sprites position in scene's update thread but it doesn't work. However I tried to reset sprites in sprites modifier listner which works. I ...
0
votes
1answer
143 views
Layout and Sprite in Andengine
I m playing video in andengine on
@Override
protected void onSetContentView() {}
but when i place sprite in screen at some point of time it is placed behind that videoview but i need to appear ...
4
votes
1answer
666 views
How would I make an air hockey AI?
I am making an air hockey game for Android using AndEngine and its Box2D extension.
How would I make an AI for an air hockey game? For it to work the AI would not only need to move its paddle side ...
0
votes
0answers
21 views
Why doesn't my game start in landscape mode?
I want my game to run on all Android devices in LANDSCAPE_FIXED mode, but this mode works only for some screen resolutions. PORTRAIT_FIXED works well for all devices. I'm testing this on and emulator.
...
0
votes
1answer
36 views
How to set LinearVelocity exactly in onSceneTouchEvent?
I'm beginner in Android programming.
And i use AndEngine GLS2 with Body and AnimatedSprite.
I have a object ball and i want to move it to follow my hand. This is description for my idea:
And my ...
0
votes
1answer
40 views
Sprite detached from the screen but contact is still made
Well, i'm facing a strange problem with my code. I'm trying to remove a sprite named ice when either of player, enemy or the ground comes in contact with the ice. The contact is made successfully and ...
1
vote
1answer
305 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 ...
4
votes
2answers
2k 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 ...
1
vote
1answer
109 views
How to rotate an image around its own center in AndEngine?
I'm beginner in Android programming with Andengine framework. And my question:
How to rotate an image around its own center in AndEngine?
I use Body and AnimatedSprite.
Update
This is my code:
...
1
vote
1answer
168 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
0answers
42 views
setChaseEntity freezes or jitters the AnimatedSprite
I'm trying to implement setChaseEntity method in a physics based app. I wrote the below code which has an animated sprite ans as the player. The player is movable and it can jump. When i try to focus ...
0
votes
1answer
78 views
Player doesn't jumps in Box2D implementation [closed]
Well, i'm trying to learn andEngine. I was able to successfully implement the move functionality for the player. Now, i'm trying to make the player jump using Box2D. I referred few online tutorials to ...
3
votes
0answers
407 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 ...
0
votes
1answer
56 views
How do I create a Fixture in Andengine and assign it user data?
I´m following this tutorial: How do I use ContactListener in JBOX2D? in order to get input from player's bottom part including a fixture in player's main body.
My problem is that I´m initializing ...
0
votes
0answers
42 views
Andengine how to change the onscreen control directions?
I am creating a game using andengine. I am using digital onscreen control to move a ball (sprite) in maze. I am able to move the ball but now I want the movement such that if I move the joystick knob ...
0
votes
0answers
33 views
Broken screen when running empty AndEngine project using LimitedFPSEngine
I am new to AndEngine and I am following the steps in this tutorial: http://android.kul.is/2013/10/android-game-development-tutorial-part-3.html.
In summary, it is a simple getting-started project ...
0
votes
1answer
44 views
Concurrent touches not being detected
I have pretty much the same controls on the race example of the engine. A AnalogOnScreenControl and a button defined by a Sprite.
The problem is, when I'm using the analog directional, touching the ...
0
votes
1answer
135 views
Android AndEngine creating a body behind the sprite exactly
I am using AndEngine for Android. I created a body, but it is not behind the sprite as I wanted.
Body.setTransform(Sprite.getX()/32, Sprite.getY()/32, 0);
This is ...
6
votes
1answer
253 views
How do I make a scrolling background out of a sequence of images?
I am new to AndEngine and trying to code a basic sidescroller game using the ParallaxLayer class from this example. (I followed the example and it works.)
How would I display multiple images ...
2
votes
2answers
190 views
2d platform game with zoom in and out
I am using AndEngine, and I wish to create a 2d platform game like worms, where I can zoom out to see the whole world and zoom into single character, so I can select it.
I do not want to use the zoom ...
0
votes
1answer
171 views
Andengine Rotate Wheel with fast acceleration
I have a Wheel sprite and i am rotating it using Physics RevoluteJointDef. Its rotating.
But problem is how i can make wheel to start moving fast. It took the speed after sometime like real.
// ...
0
votes
0answers
121 views
How to create glowing line with andengine?
today I have played this game and still wondering about this effect: when I touch the target, some lines will appear (as those yellow lines in the image). How could I create this effect in andengine. ...
0
votes
0answers
31 views
Register Modifier to Parent Entity
As far as I know, with Andengine if you register a modifier to a parent, all the children will also be affected by the modifier. If I am wrong please let me know. I'm currently working on a game and I ...
1
vote
1answer
117 views
Andengine reducing sprite quality?
I have a problem with bandings using andengine. When painting a picture on PC and uploading it to my phone, they look exactly the same. But as soon as I use that bitmap (PNG) in Andengine, I have ...
0
votes
0answers
41 views
Andengine Box2D Physics “disappearing”?
I have problems with my PhysicsWorld in Andengine GLES20. Sometimes when i first load my app and level there is no velocity added to my bodies. they also rotate slower as it seems. This also happens ...
1
vote
0answers
143 views
Spin wheel with gesture in Andengine
I want to implement Fortune wheel in Andengine. The wheel would start spinning based on the speed of a finger fling. Then it would stop slowly like real Fortune wheel.
What I am able to do now is to ...
0
votes
1answer
270 views
How do I implement swipe-to-throw in Andengine?
I have a ball sprite and I apply physics to it when the user swipes on it. I'd like the ball to start moving in the direction of the swipe, similarly to how Paper Toss works.
How can I do this?
0
votes
0answers
77 views
How can I know when a scene is fully-created in Andengine?
I am using a scene manager like this.
How can I know if a scene is fully created and visible on the screen, as it seems that the GameScene listens for touch events while the loading scene is still ...
0
votes
0answers
24 views
Andengine ResourceManager not loading
I am using Matims ResourceManager (matim-dev.com).
I am 100% sure that I implemented it right and it works just right with my Note 2. Although on my older Galaxy S Plus I am having issues when ...
1
vote
0answers
40 views
Box2D setGravity() in Andengine?
Im currently using the Andengine GLES20 branch. I know that the new Box2D method setGravity() isn't implemented yet.
Has anyone managed yet to get it to work with Andengine or to write a method ...
1
vote
0answers
130 views
Eclipse loading old tmxtiledmap instead of fresh one [closed]
I am facing a weird issue. I created tiled map using Tiled Editor. Used it in my simple andengine project to test loading of tiledmap correctly. It did load successfully. After that, I made changes to ...
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. ...
0
votes
1answer
1k views
How to set a body to a specific position using Andengine
I'm developing a game with a single player and multiplayer mode. Lets say I have walls (static bodies), vehicles (dynamic bodies) and bullets (dynamic bodies).
It works fine to control my own vehicle ...
0
votes
2answers
275 views
AndEngine - Smooth scaling on a sprite
I'm trying to implement a pinch zoom on a sprite. I would like to get an effect like the SmoothCamera, but on a single sprite. I've managed to pinch zoom on the sprite by changing its scale, but the ...
1
vote
1answer
388 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 ...
0
votes
0answers
80 views
DigitalOnScreenControl not showing on screen using AndEngine Anchor Center
i'm following tutorials and i wanted to add a knob controller on the screen, but it's not showing up, can you help me please?
This is the createControls() method in GameScene:
private void ...
0
votes
2answers
90 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);
...