Tagged Questions
8
votes
2answers
1k views
Sprite sheet or multiple resources
When animating for the Android platform is it a better practice to create a sprite sheet with multiple states for each sprite on a single picture or should I instead export individual images for each ...
7
votes
4answers
4k views
sprite animation in openGL
I am facing problems on implementing sprite animation in openGL ES.
I've googled it and the only thing i am getting is the Tutorial implementing via Canvas.
I know the way but I am having problems in ...
5
votes
1answer
574 views
Smooth pixels while rotating sprite
I just started with andengine, so this maybe gonna be silly question.
How to make my sprites more smooth while I rotate them? Or maybe it because this is screenshot from tablet?
Thanks JohnEye it ...
4
votes
3answers
7k views
LibGDX tutorial help Scene2D
I'm having trouble understanding this tutorial. It defines the importance of classes, but it doesn't show an outline of the project file so far. From what I got from that tutorial was that there is ...
4
votes
2answers
855 views
Regarding sprite design and resolution for tablets and phones
I am about to start working on a game for android devices, in my spare time, to get familiar with android development. I'm more interested in using the best practices possible than getting a quick ...
4
votes
2answers
371 views
Geometry vs sprites
I'm developing an android game, where the enemies are geometrical shapes. Performance is a main goal for me so I was wondering if defining shapes directly in OpenGL would be more efficient than using ...
3
votes
2answers
1k views
What is causing these visual artifacts on my OpenGL sprites?
What could be the cause of the defects in my characters sprite? I am using OpenGL ES 2.0. I draw my sprites in a sprite batch that uses UV coordinates from one large texture atlas. If you look around ...
3
votes
1answer
273 views
Scaling sprite velocity / co-ordinatesin Android
I'm trying to find the answer to a question that I've had for a long time, but am having trouble finding it! I hope someone can help :-)
I'm trying to find information on how to scale sprite velocity ...
3
votes
4answers
1k views
How to move a sprite automatically using a physicsHandler in Andengine?
I use a DigitalOnScreenControl (knob with a four-directional arrow control) to move the entity and the entity which is bound to a physicsHandler.
physicsHandler.setEntity(sprite);
...
2
votes
1answer
181 views
Moving sprites based on Delta time - consistent movement across all devices with different resolutions
This is the formula I am currently using to move my sprites across the screen:
Examples below only deal with X coordinates to keeps things as short as possible.
Initial variable declarations:
float ...
2
votes
1answer
602 views
How to move a 2d sprite to a target location while avoiding obstacles?
How can I get a 2d sprite to move to a position clicked on the screen, without bumping into other objects? I'm programming in java using the android API library
I have created a surface view and ...
2
votes
1answer
702 views
Android 2D game, shooting and getting animation to stop
I'm developing a game as a learning-process, and since everything I do is new to me, I have alot of problems, usually I can fix it myself but right now I'm stuck and need help.
Link to a recording of ...
2
votes
1answer
818 views
Relative and absolute position with sprites in libgdx
In libgdx, can i add a sprite as children of another an set it with the relative coordinates of the father and not the stage?
Like in HTML when you add controls they are relative to its parent, but ...
2
votes
1answer
111 views
re-using objects
I'm working with openGL ES 2.0 on Android and I've created a custom 'Quad' class.
This allows me to make a sprite object like so:
Quad mySprite = new Quad();
mySprite.setSize(w,h);
...
2
votes
1answer
1k views
Android: Improving surfaceView?
I'm using Surfaceview in my Android app. I have two threads, one for UI and another for rendering and updading the UI.
I am limiting my frames per second to 30 fps and have employed frame-skipping ...