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

learn more… | top users | synonyms (1)

0
votes
2answers
260 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 placed behind that video view. I want it ...
3
votes
1answer
453 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
0answers
36 views

Must have game engine? [duplicate]

So I been working with android studio to create apps, and thought that I would try out a game, am I reading this correctly that I can not create the game in android studio and I must use a 3rd party ...
0
votes
1answer
56 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 ...
0
votes
1answer
492 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 ...
0
votes
1answer
861 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 ...
0
votes
0answers
17 views

Sprite drag drop andengine

How to drag an andEngine sprite anywhere on the phone screen? I have written this code in onAreaTouched function of IOnAreaTouchListener interface which is implemented in my activity, but its not ...
1
vote
1answer
393 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 ...
0
votes
1answer
67 views

How to clip or mask entity in adnroid/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 ...
2
votes
2answers
33 views

Rendering curved text in AndEngine

I'm trying to implement a small game using AndEngine and I have a question about the Text. More specifically, I'm wondering if it is possible to deform the text so that you can have a "curved" text or ...
0
votes
1answer
72 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
0answers
85 views

How do I manually create a .atlas file?

I am trying to learn Andengine, and it seems it does not support sprites in any other way other thab a Texture Atlas. I am using the Android AIDE app and importing the older Andengine .JAR because I ...
0
votes
1answer
51 views

Why the triangulated body in box@d as a sensor is not treated as one but separate triangle bodies?

I am making simple game - kind of race game, where you see from the "sky" your sprites with circle Box2D bodies attached and they have to move along some path/track. My idea was to detect if they will ...
2
votes
1answer
217 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 ...
1
vote
1answer
92 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 ...
2
votes
2answers
1k 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 ...
0
votes
0answers
51 views

Game restarts after facebook login in andengine

I have created game in which i have used facebook login after successful login i am redirected to my splashscreen i don't want to go to splashscreen instead i want to open another scene but i don't ...
3
votes
1answer
103 views

Texture loading: Everything at once OR un-/loading the needed assets? [duplicate]

Good evening. We've been developing quite a huge game for android on the basis of AndEngine. So we have a lot of assets to load, especially textures. At the moment everything (sound, textures etc) ...
4
votes
4answers
3k views

Box 2d Level Editor for AndEngine [closed]

I am getting started with Box2d in AndEngine. I need to know if there is any level editor to be used with box2d and gives output capatable with AndEngine. Is there any tool which can help me building ...
2
votes
2answers
109 views

AndEngine rotate all connected bodies

I have created below hexagon structure in Andengine with box2D physics extension. I want to rotate whole structure with respect to center when other ball collides with the structure using physics. ...
0
votes
1answer
103 views

Android OpenGL: Use several Textures for one Animated Sprite

Good evening. I'm programming an Android Game. To reduce the amount of textures that need to be loaded (OpenGL ES 2.0) I've created several spritesheets of size 1024x1024. Some frames of the same ...
0
votes
0answers
41 views

AndEngine: paint in my scene

In my app I want to paint in a scene but I have a problem with primitive elements; I tried to use a "Line" but I can't draw a line with a big size line, so I tried a "Ellipse" but if my color-swipe ...
0
votes
0answers
113 views

AndEngine: get color or trasparence in a sprite

In my app I want detect when the touch in a sprite in in the trasparence and not, my code class is this: package org.andengine.examples; import android.graphics.Bitmap; import android.util.Log; ...
3
votes
1answer
905 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
80 views

how to swipe native android scrollview in andengine?

I'm developing an app using andEngine. In a scene I'm using a scrollView contains text and images. I need to swipe it right and left with my finger touch position and direction. Is there someway to do ...
1
vote
1answer
159 views

Andengine onAreaTouched TouchEvent not working - ACTION_OUTSIDE & ACTION_CANCEL

I have a simple problem. I have a button on the screen. I want isActionDown to push the button down, and isActionUp to push the button back up again and make my character jump. But the problem is if I ...
2
votes
2answers
199 views

How can I load a level using a sound file? [JAVA] [closed]

I'm trying to load a level from a music file (mp3, midi, etc, I'm not picky) for a rhythm-based game. I must be searching in all the wrong places because I can't seem to find any help on this topic. ...
0
votes
1answer
40 views

How to make text hyperlink in AndEngine

Currently to open the link i am using button sprite. But now i want to link a text to website. Is there any way to do this in AndEngine?
0
votes
0answers
96 views

How to add Scrollview in Sprite Andengine

package com.example.andengine.sample; import org.andengine.entity.IEntity; import org.andengine.entity.shape.RectangularShape; import org.andengine.input.touch.TouchEvent; import ...
3
votes
2answers
3k 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 ...
0
votes
1answer
272 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 ...
0
votes
0answers
26 views

Destroying fixtures in Box2D/AndEngine

In my game I need to break of parts of a body when the body crashes into something too violently. Currently I do that by by getting all the normal impulses of the ContactImpulse and if the max value ...
1
vote
2answers
133 views

Tower Defence game scoring system

I am in the process of developing my first game on android mobile platform, it’s a tower defence game and I am currently busy designing the scoring system. At the end of the stage when the user has ...
1
vote
1answer
90 views

Ground in AndEngine

I'm quite a newbie to AnEngine and I have a problem. I have been searching a lot, but I couldn't find answer. I'm trying to make my first game, but I have no idea how to make ground. I'd like to make ...
4
votes
1answer
297 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 ...
2
votes
1answer
128 views

How to create scrollable text in AndEngine?

I'm creating some tutorial text that the user should be able to scroll. Is there any way to make vertical scroll in AndEngine so that we can easily view all the content by scrolling up and down?
-2
votes
2answers
2k 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
1answer
469 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: <resources> <color ...
0
votes
0answers
78 views

How to determine positions to draw lines on a screen with AndEngine

I have a screen (480x800), M(mx, my) is a static point, and N(nx,ny) is a dynamic point on screen. Position of N(nx, ny) depends position of touch. I want to determine position of P(?,?) and Q(?,?) to ...
1
vote
1answer
356 views

Handling Event for multiple Sprite with one Event Listener in Andengine

In my app i need to add multiple sprite and add event to them. What i am doing now is using individual event listener for each and every sprite which is a kind of mess. buttonS[0] = new Sprite(x_pos ...
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 ...
0
votes
1answer
576 views

set TouchEvent to every particle in SpriteParticleSystem in andEngine livewallpaper

All I have working on andEngine Live wallpaper and I have use SpriteParticleSystem. I want to add touch event to every Sprite of SpriteParticleSystem and remove that sprite from scene. I have use ...
1
vote
1answer
77 views

Gradually reduce speed

Basically I am working on following application of android version Party Games: Drinking Wheel For this I want to rotate wheel and want to stop wheel at specific point. But I want this with gradually ...
1
vote
1answer
282 views

How to execute a piece of code for X seconds in Andengine?

I need to execute some code in my game for 5 seconds using the Andengine framework. So far, I've tried with the onTimePassed update handler: scene.registerUpdateHandler(new TimerHandler(5f, true,new ...
3
votes
1answer
665 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
154 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; // ...
5
votes
2answers
3k 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?
2
votes
1answer
277 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
1answer
173 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 ...
4
votes
1answer
1k 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 ...