Tagged Questions
0
votes
0answers
15 views
How to get sprites react to touches in cocos2d-android
i have 1 gun when tap on any area on the screen bullets fires out, but according to my requirement there are 3 guns(sprites) when touched on any of the sprites bullets must fire up, when googled i ...
0
votes
1answer
18 views
Android cocos2d getting a sprite to continuously move to a dynamic position
I tried using the MoveTo method in cocos2d to get a sprite to continuously follow my player sprite:
CCMoveTo actionMove = CCMoveTo.action(actualDuration, player.getPosition());
CCSequence actions = ...
0
votes
1answer
26 views
Android cocos2d removing a sprite after animation
I have an object going across the screen with an animation using the following code:
CCSpriteFrameCache.sharedSpriteFrameCache().addSpriteFrames("ninjastar.plist");
CCSpriteSheet projectileSheet = ...
2
votes
1answer
106 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 ...
1
vote
1answer
108 views
Powers of 2 textures in Android 2d games?
I've read a lot about the importance of using powers of 2 png's for textures when using OpenGL ES. However, how does this relate to Google's own documentation regarding the resizing of graphics for ...
0
votes
1answer
108 views
Drawing more that one quad with only one glDrawArray call…?
Edit
After initially thinking that my sprite batch test was faster than calling each sprite individually, it appears that is not the case!! :-(
With a single set of GL calls for a each sprite, I can ...
-3
votes
1answer
141 views
java app goes too slow in android os [closed]
The problem is that my java app contains too many animated sprites and it runs very slowly on android system.
Does the usage of .gif animation instead of sprite animation will improve the speed?
I ...
0
votes
2answers
334 views
Drawing Sprites in Android OpenGL efficiently?
I want to basically give myself some sprite drawing functions (making use of openGL) such as;
draw(Texture,x,y)
I want to do this using OpenGL-ES 2.0 on Android. Since the textures can be varying ...
0
votes
1answer
409 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 ...
0
votes
1answer
162 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 ...
0
votes
1answer
189 views
To stop Spite animation scrolling along the background in openGL ES
After using the endless road algorithm as described here, I also implemented the scrolling of walls along with it.
I have the walk animation of the person which is stationed at the center of the ...
0
votes
0answers
266 views
libGDX using Stage and Actor produces different camera angles on desktop and Android Phone
libGDX using Stage and Actor produces different camera angles on desktop and Android Phone.
Here are pictures demonstrating the problem: http://brandonyuh.minus.com/mFpdTSgN17VUq
On the desktop ...
1
vote
1answer
427 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 ...
3
votes
3answers
536 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);
...
1
vote
1answer
533 views
Creating Transparent Game Menu Items using AndEngine
I'm trying to create a Game Menu which contains some Menu Items like
New Game
Multiplayer
Options
Exit
I want to make this Menu Items Transparent. Only Text in White color should be visible.
So i ...
3
votes
1answer
217 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 ...
0
votes
1answer
577 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 ...
5
votes
1answer
471 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 ...
1
vote
1answer
550 views
Sprite animation in openGL - Some frames are being skipped
Earlier, I was facing problems on implementing sprite animation in openGL ES.
Now its being sorted up. But the problem that i am facing now is that some of my frames are being skipped when a bullet(a ...
6
votes
4answers
3k 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 ...
4
votes
2answers
642 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 ...
2
votes
1answer
605 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
2answers
343 views
Changing sprite animation depending on direction
I'm working on an android game where my sprite is controlled by a joystick. I just added an animation to my sprite with 4 rows and 3 columns:
Now I want to change the animation of my sprite ...
0
votes
3answers
859 views
Using multiple sprite sheets for same object AndEnginge
I have multiple sprite sheets for my object(Parrot) like eating, moving left to right, right to left and much more. I am using AndEngine gles2.0. How should I implement it? Every time I have to use ...
4
votes
2answers
337 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 ...
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 ...
0
votes
2answers
1k views
Pixel perfect collision detection between sprite and animated sprite
I am trying to make a collision between a sprite and an animated sprite. The animated sprite is the main character of the game. The problem I am facing is that when another sprite collides with the ...
0
votes
2answers
76 views
Crash when trying to detect touch [closed]
I've got a character in a 2D game using surfaceView that I want to be able to move using a button (eventually a joystick), but my game crashes as soon as I try to move my sprite.
This is my ...
0
votes
2answers
255 views
Android Game Development problem with Speed = Distance / Time
I have been coding speed for an object. I have made it so the object will move from one end of the screen to another at a speed depending on the screen size, at the monemt I have made it so it will ...
1
vote
2answers
2k views
Sprite collisions in android andengine
I'm developing a simple game by andengine. I have 10 balls which are moving randomly on screen.i'm importing the balls as picture in sprites.if they move at the same coordinate , they pass though ...
1
vote
2answers
439 views
CCSpriteFrameCache: Frame '%s' not found
I have just started using the Cocos2D library for Android. I am trying to make a walking bear animation.
For that I am using a CCSpriteFrameCache, but I'm getting a "frame not found" error in the ...
-1
votes
2answers
248 views
How to spawn a character at certain point and walk to a set point
I am making a game where I have a background image of a neighborhood. Each location has a different number of customers that are generated to walk on sidewalks. They all walk to a specific location ...
4
votes
3answers
5k 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 ...
2
votes
2answers
405 views
Horizontal wrapping with AndEngine
How would one implement the effect of a sprite disappearing on one side of the screen and appearing on the other using AndEngine? Like in Kid Icarus, seen here at around 1:22.
0
votes
2answers
482 views
How would I generate random falling objects
I'm creating a game using libgdx on Eclipse that is similar to Ragdoll Avalanche. I'm looking for a way to generate falling objects like the triangles of Ragdoll Avalanche. All I know that i have to ...
0
votes
1answer
2k views
How to know if an actor is touched in libgdx?
I am using "Gdx.input.isTouched()" in the render method of my Screen method, to know where is touched, but when the touch is dragged in the screen, it also activates the events i want only when an ...
2
votes
1answer
749 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
566 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 ...
3
votes
2answers
956 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 ...
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 ...