Questions tagged [andengine]
AndEngine is a free Open Source 2D OpenGL Game Engine for the Android platform.
242
questions
1
vote
0
answers
37
views
How to update the version of Box2D used in AndEngine?
I need help to use an updated Box2D library where the current version is > 2.3.0. I am unable to find a compatible library and do not know how to compile one for use with the Java Native Interface (...
1
vote
0
answers
870
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:...
0
votes
1
answer
141
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
...
0
votes
1
answer
125
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
1
answer
79
views
Stretch line on bow using touch
I have drawn a line on sprite representing the string of a bow. I want to stretch it with finger touch input, using onTouch. I have added a Physics body but I don't ...
0
votes
1
answer
332
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 ...
1
vote
0
answers
268
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;
...
1
vote
1
answer
1k
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
1
answer
423
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
0
answers
64
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
...
-1
votes
1
answer
285
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
0
answers
86
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
2
answers
283
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 ...
1
vote
0
answers
253
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,...
4
votes
1
answer
404
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, ...
6
votes
1
answer
696
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 ...
2
votes
2
answers
65
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 ...
3
votes
1
answer
154
views
Sounds make Andengine Scene junky
I have a GameScene which has a character (animated sprite), AutoParallaxBackground background with quite large textures and no ...
1
vote
0
answers
56
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
0
answers
90
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
1
answer
54
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 ...
1
vote
1
answer
128
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
0
answers
192
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 ...
0
votes
0
answers
414
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 ...
2
votes
2
answers
52
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 ...
5
votes
1
answer
499
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/...
3
votes
1
answer
182
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) ...
0
votes
1
answer
279
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
1
answer
76
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
2
answers
301
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.
I ...
2
votes
2
answers
312
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.
(...
1
vote
1
answer
536
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 ...
1
vote
2
answers
438
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
1
answer
194
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 ...
1
vote
1
answer
98
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 ...
2
votes
1
answer
337
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?
0
votes
1
answer
82
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?
1
vote
1
answer
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
1
answer
671
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.
...
0
votes
1
answer
1k
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
1
answer
141
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
1
answer
790
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:
...
0
votes
1
answer
1k
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 ...
4
votes
1
answer
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 ...
-1
votes
1
answer
631
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 ...
2
votes
1
answer
571
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 how ...
0
votes
1
answer
82
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. ...
0
votes
1
answer
78
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 code:...
5
votes
1
answer
3k
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
1
answer
322
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 ...