Tagged Questions
0
votes
1answer
56 views
Cost of changing scene in andengine
I'm working on a simple 2d puzzle with small textures (in count and quantity).
Now after I finished the game logic I'm considering tow options to switch between levels:
Remove all objects manually ...
1
vote
1answer
205 views
TextureRegions and TextureAtlases in AndEngine
This is my first android game, sorry if my code is bad, any advice will help. I am trying to find ways to improve performance on a game of mine, I'm using AndEngine GLES2. I have a basic question ...
2
votes
1answer
103 views
onSceneTouchEvent Triggering more than once on one click in Andengine
I am making a simple american football game, and I'm having an issue with the onSceneTouchEvent function, I have this code:
public boolean onSceneTouchEvent(final Scene pScene, final TouchEvent ...
1
vote
1answer
362 views
setPosition of Sprite onUpdate in AndEngine
I am trying to get a "highlighter" circle to follow around a sprite, but I am having trouble, I thought I could use the onUpdate method that's available to me in SequenceEntityModifier but it's not ...
2
votes
1answer
117 views
How to manage my model
I have in my model, a list of Classes : Player, NonPlayerCharacter, Monster, Item, NonMovableItem etc
With AndEngine I've a list of sprite for each piece of my model,
How can I manage the ...
1
vote
1answer
409 views
AndEngine player, background and camera
I'm developing a 2D shooter using AndEngine. At the moment I'm trying to make the camera follow the player. As I've understood the common approach is to use the SmoothCamera zooming it and setting the ...
1
vote
2answers
266 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
538 views
rotate sprite and shooting bullets from the end of a cannon [duplicate]
Possible Duplicate:
How to Align Gun with Bullets
Hi all i have a problem in my Andengine code,
I need , when I touch the screen, shoot a bullet from the cannon (in the same direction of ...
2
votes
1answer
645 views
Andengine. Put bullet to pool, when it leaves screen
i'm creating a bullet with physics body. Bullet class (extends Sprite class) has die() method, which unregister physics connector, hide sprite and put it in pool
public void die() {
...
2
votes
0answers
1k views
Best practice to use Sprites in a game using AndEngine GLES2
Currently I am having static reference to all my sprites and loading and initializing them in my OnCreateResource mthod of SimpleBaseGameActivity, But now I have to override onAreaTouched listener on ...
-3
votes
2answers
506 views
How to fire a bullet in a specific direction?
I am developing an Android game. I have problem with bullet firing. It's a space ship that has to fire bullets but right now it's firing in a random direction. I have to fire a bullet to the enemy ...
0
votes
1answer
219 views
Change density of the body dynamically
In my game, I want to change density of my body object when it collide with other objects. I found something like following to change density but further I could not able to find any hint for this. So ...
4
votes
3answers
438 views
Box2d Collision problem
I'm not good with words so here's a picture to describe my problem:
In my game there is this big ball which the user can move on x-axis only. Now, if the ball is falling like the red one, it's ...
1
vote
1answer
414 views
AndeEngine Parallax / Sprite Depth?
What I'm attempting to do is create a game in which a space ship explores a large area of space. I'm randomly generating placement of planets, space stations etc. I want to use the ...
5
votes
2answers
2k views
How do I find the angle between two vectors?
I have 3 points on my screen:
a = a point which is (c.x, 0) makes a line pointing straight up
b = a user input touch, can be anywhere on the screen
c = a moving object
a
_______.________
| ...