Questions tagged [andengine]

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

Filter by
Sorted by
Tagged with
1
vote
1answer
1k 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 ...
3
votes
1answer
555 views

Spawning enemies in four different positions with a fixed trajectory in android game

This is my first android game, I appreciate all the help. I want to define 4 spawning zones starting from out of the screen (left, right, up and down). Enemies coming from this areas have a fixed ...
0
votes
1answer
29 views

Streach line on bow using onTouch

I have drawn a line on sprite(Bow) and i want to stretch it using onTouch by fingers. I have added Physics body but not getting how to stretch the line. Its a bow and arrow demo. Please see attached ...
1
vote
1answer
1k views

Alert Dialog Box font color in AndEngine [closed]

I am developing an app using AndEngine and I am using my own custom theme to use white background theme. My styles.xml file looks like this: ...
1
vote
1answer
377 views

How to replace tiles in Tiled in AndEngine?

in my Game I Create object layers and interpret the shapes in the engine as collision objects...now I want when Player collide with object, after a few seconds object falls...this works properly but ...
1
vote
2answers
464 views

How do I draw a sprite on top of a video in Andengine?

I'm playing a video in Andengine on @Override protected void onSetContentView() {} However, when I place a sprite on the screen at some point in time, it is ...
4
votes
1answer
400 views

How to clip or mask entity in android/andengine?

I want to implement masking with sprite in Andengine. I want same functionality as in ios class called SKCropNode which works like an masking node! Is there any workaround like this in andengine/...
4
votes
1answer
754 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 ...
11
votes
4answers
4k views

Should I move the world or move the player?

I'm about to start developing a sidescrolling game where the player's 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
1answer
387 views

Creating big scene and little size chasing camera

I would like to create a climb based game, so I need to have a big scene and a camera that cover only a little part of it and chase my player. This image explains easier what I want: How can I do it? ...
0
votes
1answer
1k views

Drawing Text on a scene

I am not sure if I am missing something but I was thinking about how text entities are drawn on a scene, are they drawn with an offset depending on the length of the text? I notice that when I add a ...
-1
votes
1answer
2k views

Create Box2D and engine polygon Box2D body without sprite

I have created my body using following code: (please read full description) ...
0
votes
1answer
134 views

TMX crashes in Tablet 10″ Android 7.0 with Andengine

I've developed a video game that has worked fine so far. When testing it in a Samsung Galxy A6 tablet (10" resolution with Android 7.0), I get the following error and the map won't load: Blockquote ...
2
votes
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
vote
0answers
609 views

Detected problems - libandengine.so text relocations

I am creating a game with AndEngine on Android Studio (v.3.0.1). When I run the game on my Honor 8 (7.0) everything works as expected. But on the Samsung A3 (7.0) or J5 (7.1.1) a Dialog appears saying:...
3
votes
2answers
1k 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 ...
0
votes
1answer
192 views

Camera Calculation

For my game I don't able to decide what camera resolution I have to use ? Normally I use 1024x600 landscape resolution of camera for my game and create single graphics for my game. But I found that ...
1
vote
2answers
746 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?
0
votes
1answer
686 views

How can I use ParallaxBackground in AndEngine?

I'm new to game development with AndEngine. I want to add ParallaxBackground but I don't know how to change the background when the player moves. I'm using arrows for moving a player. Now my ...
6
votes
2answers
4k 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?
1
vote
1answer
2k views

Andengine Traffic game: moving sprites along path on map

I'm developing simple traffic educational game, like "Allianz Křižovatky". When the player taps on a car sprite, it should start to move with the other cars. If the player made a mistake in choosing a ...
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 ...
4
votes
1answer
1k views

Performance problems with many entities in AndEngine

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. I recently increased the game width, and, by doing so, I now have about ...
0
votes
1answer
300 views

Roulette Table Ball Movement Creation

I am developing following type of game Roulette Royale. I am basically ready with wheel and number table. When user move wheel table then ball also move on that table and stop at particular number ...
0
votes
1answer
121 views

How to make character respawn the position needed in Andengine?

I want to make my character respawn in the last Checkpoint he has reached. I've already stored the position of the checkpoint but I'm not very sure of how to set that position to the Sprite/Body of ...
0
votes
1answer
260 views

How do I load 100+, 480*800, 30KB PNGs into a frame by frame animation on Android without OOMs?

I'm an Android dev who's trying to get into game dev. As the title says, I'm trying to load a hundred PNGs as an animation, fullscreen on Android, but no matter what I try, I always getting out of ...
0
votes
1answer
899 views

What units is Box2d-AndEngine's velocity measured in?

I'm developing a game on AndEngine (with Box2d) and on iOS Sprite Kit simultaneously. I want the game's physics to be identical on both platforms. Sprite Kit uses Box2d internally for physics ...
1
vote
3answers
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
0answers
248 views

How to rotate a sprite on touch/drag done on the screen wih Andengine?

when I look at the andengine examples I saw an example about rotate a sprite with joystick. Here is the code; ...
2
votes
2answers
5k views

How to Change default Mouse pointer on emulator in Android?

I want to change default mouse pointer in Android emulator. I want to change it for my game to use different type of cursor.I am using AndEngine for my game development. Is there nay way to change ...
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.
7
votes
2answers
487 views

Letting the user draw a Polygon Body and Image

In my game, I want to provide the user with a drawing feature. By free hand drawing, the user creates a polygon shape. Then, in my game implementation, I have to create a body for the found vertices ...
4
votes
2answers
938 views

How can I change width of sprite Dynamically?

I want to change width of sprite dynamically but i can't perform it.!! Here i want to change only my white sprite i want to use these type of facility in my game in using AndEngine I want to display ...
1
vote
1answer
95 views

Slide to reveal in AndEngine

I was designing the game in that i want to cover the scene with black layer and i want user to see it when he slide the image. Is there any functionality in AndEngine for something like slide to ...
1
vote
1answer
116 views

How to implement constant velocity and collisions without gravity

I am learning game development and i am trying to implement the AndEngineBox2D Extension such that my character is always moving at a constant velocity, when it collides with a body sprite, the ...
0
votes
1answer
829 views

How do i set gravity towards a point in the centre in AndEngine with Box2D?

I have a scene and i can set gravity in the PhysicsWorld like this.mPhysicsWorld = new PhysicsWorld(new Vector2(0, -SensorManager.GRAVITY_EARTH),false); but i ...
1
vote
0answers
61 views

getting a black screen instead of the background image

Was creating a my first game in AndEngine and am only getting a black screen instead of getting the background image and play button.. Here the code MainActivity ...
4
votes
1answer
361 views

Setting 4 different enemy spawn zones off screen

This is my first game, so I really appreciate all the help. I want to create four enemy spawn zones for enemies and this areas are off screen. The enemies are coming from left, right, up and down, ...
-1
votes
1answer
255 views

Change Andengine Text By clicking and typing a new text like native android EditText

I have a board in my game, with a name. I want to edit it on a button click (not by text.setText("text") method ) i want the user to enter a text and set it there. I couldnt find, how to change the ...
1
vote
0answers
78 views

How can I detect sprite collisions out of screen?

I am creating an Android game using andEngine library. I have enemies coming from out of the screen into the screen. I already know how to detect collisions, but is there any method I can use to ...
1
vote
2answers
249 views

How can I exclude my enemies from spawning in certain zones generated at random?

I have a code where I randomly generate enemy spawn position, but I want to exclude some areas since it's colliding with some sprites it shouldn't collide with. This is the code where I generate the ...
3
votes
1answer
140 views

Sounds make Andengine Scene junky

I have a GameScene which has a character (animated sprite), AutoParallaxBackground background with quite large textures and no ...
5
votes
1answer
2k 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 ...
1
vote
0answers
242 views

Best way to load multiple TextureRegion from multiple bitmaps in AndEngine

I've seen a lot of examples of AndEngine usage where some bitmaps are mapped into some TextureRegions and loaded into an Atlas. But what if I have a lot of bitmaps, where each bitmap is a sprite sheet,...
2
votes
2answers
62 views

Wrong behavior when trying to move on air

I´m using Andengine and jBox2D to implement a Mario-like platform videogame. Jumping and moving works fine. The problem comes in a very specific case: I keep the "Move left" button pressed all the ...
2
votes
1answer
1k views

How should I generate the board for a match-3-style game?

I am trying to create a "match 3" game. I'm stuck figuring out a good algorithm to fill up the game board. My game's board is 8x8. EDIT: A few things: The board should always be solvable. for ...
1
vote
0answers
51 views

Unregister touch sprite when background scene is zoom and moving

I am new to game development on Android, I use AndEngine framework. I'm developing an application with isometric view, at this time I had problems with touchlistener area on the sprite in the scene ...
1
vote
0answers
78 views

Andengine app freezes after resuming from background

I have developed an andengine app which works fine except whenever the app goes goes into background. There are 2 issues I am seeing. 1) If i leave the app by pressing the home button and then come ...
-1
votes
1answer
45 views

Remove Touch LIstener from scene at a specific point

how to remove SceneTouchListner at a specific point? I am Working on a Endless Runner Game. my player is jumping onSceneTouchListner when player is collide with a barrier i want to remove ...
3
votes
1answer
489 views

Making a 2D TMX tile map

Should there be a specific link between the characters height as well as the tile size for the tile maps? That is if a tile is 32x32 does that mean that a character sprite has to be the same size? ...