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
1 answer
1k 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: <...
LazyCatIT's user avatar
  • 115
0 votes
1 answer
160 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 ...
Hitesh's user avatar
  • 5
0 votes
1 answer
225 views

How do I create a Fixture in Andengine and assign it user data?

I´m following this tutorial: How do I use a JBox2D ContactListener to check if my character is standing on the ground? in order to get input from player's bottom part including a fixture in player's ...
Barbara PM's user avatar
0 votes
1 answer
73 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....
Draiken's user avatar
  • 213
2 votes
1 answer
389 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 ...
McGrey's user avatar
  • 21
0 votes
1 answer
528 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. ...
John's user avatar
  • 3
6 votes
1 answer
2k 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 ...
Renier's user avatar
  • 175
2 votes
2 answers
484 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 ...
Eric's user avatar
  • 21
1 vote
0 answers
648 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. ...
Thien Dinh's user avatar
1 vote
0 answers
852 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. ...
ALi's user avatar
  • 111
0 votes
0 answers
85 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 ...
lorenzhirsch's user avatar
-1 votes
1 answer
781 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. How can I do this?
Uday's user avatar
  • 99
1 vote
1 answer
495 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 ...
lorenzhirsch's user avatar
1 vote
1 answer
144 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 ...
lorenzhirsch's user avatar
0 votes
2 answers
1k 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 ...
Phil-R's user avatar
  • 103
0 votes
1 answer
6k 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 ...
Michael's user avatar
  • 103
2 votes
1 answer
1k views

AndEngine Font Issue

I am learning AndEngine. I am displaying Hello world using this code: ...
Noaman Akram's user avatar
1 vote
1 answer
1k views

What is difference between AndEngine's three Cameras

I am new to game development. After observing some AndEngine code snippets, I am trying to figure out which camera would be best suitable for my 2D game. Either it's BoundCamera, SmoothCamera or ...
NightFury's user avatar
  • 191
1 vote
1 answer
2k 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 ...
stumct's user avatar
  • 11
1 vote
2 answers
518 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 ...
KOTIOS's user avatar
  • 121
0 votes
2 answers
285 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: ...
KOTIOS's user avatar
  • 121
2 votes
1 answer
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 ...
coder_For_Life22's user avatar
1 vote
1 answer
581 views

Max Row and Col for Animating Sprite in Andengine

I want to animate a Sprite in Andengine , I have used the following ...
KOTIOS's user avatar
  • 121
1 vote
1 answer
431 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 ...
Weslley Alcobaça's user avatar
0 votes
1 answer
1k views

AndEngine: Painting on a canvas rather than composing image from objects

I'm trying to implement drawing a line with a finger, similar to a Pencil tool in image editors. From what I've found on AndEngine, it seems like the recommended approach would be to create a line ...
lapis's user avatar
  • 103
5 votes
3 answers
4k views

How to make Box2D bodies automatically return to a initial rotation

I have two long Box2D bodies, that can collide while moving one of them around with MouseJoint. I want them to try to hold their position and rotation. Blue body is moved using MouseJoint (yellow) ...
MartinTeeVarga's user avatar
1 vote
2 answers
1k views

How do I make a Box2D object that makes objects passing through it slower?

I wish to have a sort of "slow motion" or "slow down" effect on a players character when they walk in a mud area, usually the character velocity is 3f constant in ...
kabuto178's user avatar
  • 205
3 votes
1 answer
537 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? ...
kabuto178's user avatar
  • 205
0 votes
1 answer
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 ...
kabuto178's user avatar
  • 205
1 vote
1 answer
711 views

Getting body position

I am using BodyA.getPosition().x and BodyA.getPosition().y to get the x and ...
kabuto178's user avatar
  • 205
2 votes
2 answers
2k views

AndEngine Scoreloop - java.lang.IllegalStateException: you are not calling from the main thread context

I am a very novice android developer but also created a game using andEngine successfully. Now I want to integrate Scoreloop and everything is fine with Leaderboard view and TOS view, except I am ...
Nafis Abdullah Khan's user avatar
0 votes
1 answer
682 views

Version number not supported by gl2 in andengine

I am new to andengine. From various forums, i got to know that my system should support hardware virtulisation. I have installed "Intel X86" and my system didn't throw any problem regarding "HAX" now. ...
user1638668's user avatar
0 votes
0 answers
1k views

ANDEngine : 3d rotation in Particle System

Im using ANDEngine and wants to create confetti particle system. But im unable to make flipping and rotation of confetti particle around z-axis Since andengine is 2d engine, it doesnot support that. ...
asma.farhat's user avatar
2 votes
1 answer
2k views

Button - change texture after click

I need to make a button with texture. After button is pressed I want to change texture of button permanently. For example on/of sound button. I tried this but it changes image only while I hold button....
drizzt's user avatar
  • 141
3 votes
1 answer
829 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 ...
Haider's user avatar
  • 155
2 votes
1 answer
2k views

How do I pause Andengine, but still get input?

In my game when I pause the game, I'd like to display three options (Resume, Restart and Menu) so I did this after calling mEngine.stop(): ...
Matteo Cardellini's user avatar
-1 votes
2 answers
264 views

ParallaxBackground doesn't work well with sprite scaled

I'm trying to set a ParallaxBackground for my AndEngine's game. So I did this: ...
Matteo Cardellini's user avatar
0 votes
1 answer
690 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 ...
Kirit  Vaghela's user avatar
0 votes
1 answer
611 views

Smooth Camera Zoom Factor Change

I have game play scene in which user can zoom in and out. For which I used smooth camera in the following manner. ...
Siddharth's user avatar
  • 1,986
1 vote
3 answers
2k views

Box2D body jitters when colliding with static body

I am developing a game where a body is moved within the scene using touch. The scene has a boundary wall made up of static rectangular bodies. When I move the object along the boundaries, on collision,...
Haider's user avatar
  • 155
3 votes
2 answers
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 ...
gnanam's user avatar
  • 31
3 votes
2 answers
579 views

Word Search Game Issue

I am developing a game like word search. I have used AndEngine for this and for displayig grid of words I have used TiledMap. In this game, we need to join letters to make a word as we drag our ...
Saurabh's user avatar
  • 151
0 votes
2 answers
10k views

Convert int to Color

I am right now developing paint application in andengine because some features are only possible with andengine. For this I have used color dialog box to use user selected color but that dialog box ...
Siddharth's user avatar
  • 1,986
2 votes
2 answers
4k 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. ...
Siddharth's user avatar
  • 1,986
3 votes
0 answers
161 views

How to make the Angry Birds "shot arch" dotted line? [duplicate]

I am making a game that includes 2D projectile flight paths like that of Angry Birds. Angry Birds employs the notion that a previous shot is shown with a dotted line "arch" showing the player where ...
boltup_im_coding's user avatar
2 votes
1 answer
673 views

Black borders in Andengine

I am using Andengine and when I start the examples there are black borders on left and right of the screen. Like this: 10000001 10000001 10000001 where 1 is ...
Boris's user avatar
  • 23
-1 votes
1 answer
2k views

Continuous increase in heap memory in Android game [closed]

For my Android AndEngine game, I used the scene based approach. Game contains more graphics so I need to load and unload those graphics multiple time so that game runs smoothly. But doing this, I ...
Siddharth's user avatar
  • 1,986
0 votes
1 answer
303 views

Font disappear after reloading

As this post title suggest, font of the scene become disappear when same scene call more than two time. Following code I used for creating font. ...
Siddharth's user avatar
  • 1,986
3 votes
2 answers
2k views

"Non-additive" alpha blending in OpenGL ES 2.0, Android (AndEngine)

I have several monochromatic sprites and I render them with alpha = 0.25 (all of them the same value). I want to "paint" with them, so when they overlap, the alpha won't be added. I am not sure if I ...
MartinTeeVarga's user avatar
1 vote
1 answer
398 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? ...
stearm's user avatar
  • 35