A 2D rendering of an object in space.
-1
votes
0answers
21 views
Modeling objects coming down from a networked pipe on the client?
I've got an entity base class that contains information about a particular object that both the server and client know about, they're in a shared DLL. It's just a basic outline of entity information ...
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
25 views
sprite array problem with initialization
I have a problem with my Sprites. I'm trying to create a lot of Sprites. However, I got a problem in that I have several grass tiles and I don't want to do this
grass1 = new Sprite...;
grass2 = new ...
0
votes
1answer
43 views
My Sprite Rectangle moves, but my sprite doesn't
Here's the issue, When I build, everything loads fine, everything works, but then, when you enter the game, the sprite is there. However, The sprite does not move, the sprite RECTANGLE does. Meaning ...
-1
votes
0answers
15 views
How to unbind a sprite in an updating vector? LIBGDX framework [closed]
How to unbind an updating vector to a sprite? I am using Libgdx framework. here is my code
public class VectorSample extends GDX_TEST implements InputProcessor {
Texture ball,bullet,guider;
...
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 = ...
1
vote
2answers
78 views
OpenGL ES 2.0: 2D game rendering, no performance gain with glDraw call batching
I just did a small benchmark. To my surprise batching sprites into a single draw call doesn't give any significant performance boost. Following are my results:
Hardware: iPod touch 4
Extra info: ...
3
votes
1answer
44 views
How to make a map surface object
I'm making a 2d tile based game. In pygame I could create a map like this:
screen = pygame.display(resolution)
map = pygame.Surface(width, height)
for tile in all_tiles:
map.blit(tile)
...
-1
votes
1answer
74 views
How would you program sprite movement in a 2-D ariel view rpg game? [duplicate]
I'm relatively new to programming and I have recently programmed an RPG game in java.
Any tips on character movement with animations? I would like it to be similar to those of other rpg games such as ...
-1
votes
0answers
34 views
How to align sprites from a non-aligned sprite sheet?
When I deal with sprite sheets, I have to cut each sprite and adjust their offsets by hard.
This is too much work, so I've made a tool that does the following:
Analyze the image, detecting bounding ...
1
vote
1answer
57 views
Create sprite and place in pre-defined places using mouse
So, I have a table. I want to be able to click on a button that allows a mode where I place a sprite on the table, on places that are predefined. How do I do that?
I was thinking I could constantly ...
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
157 views
How should a programmer get started with creating 2D Sprites? [duplicate]
I am a programmer. Given a sprite sheet, I can code game as per the requirements. But I do not know how to create these sprites. I use Cocos2D. And I do not know where to begin. I have never done ...
0
votes
1answer
43 views
How to determine the best approximate direction [duplicate]
I want to determine which sprite to use when one agent is "facing" another agent.
My game is 2d, and uses 8-directional movement. Deciding which sprite to use for movement is easy enough since there ...
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 ...
-2
votes
1answer
85 views
loop only onces than stop [closed]
i have a enemy and spriteanimation classes.
in Enemy class i have bufferedimage array with 4 different images. than i am creating a animation and storing in 'animationEnemyHit' variable. than i am ...
0
votes
1answer
72 views
LibGdx : Animations not working on custom actor
I have this code for rendering a sprite, retrieved from a TextureAtlas
public class SpriteActor extends Actor {
private Sprite sprite;
public SpriteActor(TextureAtlas atlas, String spriteName) {
...
5
votes
1answer
107 views
Mip Maps on 2D Sprite causing black line above. Why is this?
I am new to Unity. I'm trying it out and using Futile for a code-first approach, but still importing textures using the Unity system.
The problem I'm having is that when I use mip maps to scale large ...
0
votes
1answer
81 views
scaling point sprites with distance
How can you scale a point sprite by its distance from the camera?
GLSL fragment shader: gl_PointSize = size / gl_Position.w; seems along the right tracks; for any given scene all sprites seem nicely ...
0
votes
5answers
426 views
Collision detection logic
Edit 2
In the following picture sprite1 (the red square) is hitting the platform from the left, so:
sprite1_rightEdge>platformSprite leftEdge
would be true, so I can simply reposition ...
-1
votes
0answers
91 views
2D scrolling background sprite, Direct X, and C++
Here is a quick rundown of my problem. I am trying to make a 2D scrolling shooter, using a sprite to render the background. This works fine by itself, it has the scrolling effect I am looking for. The ...
0
votes
1answer
70 views
Sprite not rotating around its centre after Scaling at its centre
If I scale a sprite at its centre, then try to rotate it around its centre as well, the rotation does not occur around its centre.
If you need to rotate, for example a scaled ball,the way its working ...
1
vote
1answer
56 views
How to attach one sprite to another in LibGDX?
I want to attach one sprite to another so that it is always located at the 'bottom' of the other sprite, regardless of how the main sprite is rotated.
-1
votes
0answers
46 views
How to move a PhysicsSprite
I'm trying to move a PhysicsSprite from left to right based on where the user clicked.
I understand that a simple Sprite can be moved by MoveTo functions but what is a way to move a PhysicsSprite? ...
0
votes
2answers
76 views
Sprites: Are there any tools to scale sprites individually without using Photoshop/GIMP? [closed]
I am using TexturePacker as tool to pack my 2D sprites, it is good but it doesn't provide the possibility to scale individual sprites to a specific scale.
I am wondering whether there is any good ...
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 ...
2
votes
3answers
165 views
Do larger sprite sheets improve performance in html 5 games?
I know when I did some game development with XNA they recommended that we try to group are sprites into fewer sheets because the graphic card could process it faster. Does this also apply to web based ...
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 ...
0
votes
0answers
170 views
Optimal OpenGL 2D Sprite Batching (Best Practice)
I am working on simple 2D engine using OpenGL (3.3+) for rendering and was wondering what the optimal method of sprite batching would be. I plan to put all sprites into one (or fewer) texture atlases. ...
1
vote
1answer
234 views
Managing sprite sheets for animation [closed]
I am trying to use a sprite sheet for animation but I'm having some trouble with my implementation. The three key things that I require my code to do are:
Play through a set of images once, for ...
0
votes
1answer
130 views
Displaying sprites in a 2.5D raycasting engine
I'm developing a raycasting engine like the one used in DOOM, Wolfenstein 3D, etc.
My engine is capable of correctly displaying walls and textures on walls, but I'm stuck at sprites rendering.
Given ...
0
votes
0answers
52 views
Flash CS6 Spritesheets and XNA
So new with Adobe Flash CS6 comes the new Feature to export Movie Clips as a Spritesheet which seems very nice!
I have a few questions to CS6:
http://imgur.com/enllkyL
Its nifty but it lost its "up ...
2
votes
1answer
88 views
Get average tile color
In my 2D game I have TileSet class that loads the texture and creates Rectangle[] array which stores each tile coordinates. Pretty basic stuff. Now I'd like to also calculate and store the average ...
1
vote
0answers
161 views
Love2D : How can I keep up with lots of small sprites' collision data?
So I'm using a SpriteBatch to keep up with lots of small pieces for a falling-piece puzzle game. I have an array of Quads (for different color blocks), and they are randomly added to the ...
0
votes
2answers
124 views
How to scale a sprite with its center as origin?
I'm trying to zoom-in a sprite gradually from 0% to 100% (a sprite called SelectionBox), so it zooms from the middle of the sprite, not from the upper-left corner. I'm almost there, but I'm having ...
0
votes
1answer
89 views
Love2D : Problem rotating image in a SpriteBatch
I'm working on a falling blocks type of game with triangular pieces. I'm using a SpriteBatch to accumulate and remember the pieces and their locations.
The problem is that when I rotate a scaled ...
-1
votes
1answer
101 views
Drawing multiple sprites with clear screen for every frame
I googled with best of my skills, but I cannot find any relevant answer to my problem. I'm making a game with an isometric view. I need to draw multiple sprites on the screen and before switching to ...
-1
votes
2answers
247 views
Software to create anime-looking animation? [closed]
I'm looking for a software for the creation of anime-like sprites. Look at those:
Those are hand-drawn. I want to generate sprites with that look, but in several (thousands) positions, in order to ...
4
votes
1answer
314 views
2D animation: Animated 3D models or sprites with animation frames?
Starting out with new project, I am stuck choosing between:
3D textured model animated directly through the renderer
2D sprites and drawing each animation frame
The game will be 2D platform, I ...
-1
votes
2answers
174 views
Moving a sprite towards an x and y coordinate
Given a sprite with an x and y coordinate, how would I move it toward another sprite with an x and y coordinate?
I've already made it face towards the other sprite, and I've made it move towards the ...
-1
votes
2answers
135 views
Semi Transparent Background in Scene [closed]
In my game I want to create game over scene which is semi transparent so game scene become partially visible.
Game over scene contain several button that are not transparent but I need only ...
1
vote
2answers
257 views
Common practice when handling sprite animation
Let's say I'm using the following sprite as a sample to try LibGDX Animation and TextureRegion.
http://www.smackjeeves.com/images/uploaded/comics/7/8/78bc6b62fEySW.gif
As you can see, the provided ...
0
votes
1answer
61 views
Revolve FlxSprites Around a Central FlxSprite in Flash Game made with Flixel
I have been working on a Flash game made in Flash Builder using the Flixel library. I have been trying to dynamically create a group of FlxSprites , and revolve them around a player controlled class ...
1
vote
0answers
136 views
What program generates character sprite sheets like this? [duplicate]
I see template sprites like this a lot but cant find what program creates them.
To clarify I am looking for the program or generator that is creating the characters not laying them out. I've seen the ...
0
votes
0answers
71 views
cocos2d Move Sprite using buttons [closed]
Using CCMenu I have create Two Buttons Up and Down Here is the code
CCSprite *normlUp = [CCSprite spriteWithFile:@"Up.png"];
CCSprite *selectedUp = [CCSprite spriteWithFile:@"Up.png"];
...
-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
94 views
Returning The Position Of A Sprite Drawn & Updated By A List [closed]
My problem is this, when iceBoy hits any of the newGrounds in the ground.groundAmmount list, it will return the specific position of this newGround so that i can set iceBoy's position based on the ...
-1
votes
2answers
120 views
Why does my sprite animation sometimes runs faster? [closed]
I don't know why each time I call the Update_Animation function, my sprite animation runs faster. Is it caused by gameTime? How to fix it?
Here's the relevant code:
class Character
{
// ...
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
134 views
Using depth buffer on a sprite
I am following this guide:
http://www.cocos2d-iphone.org/wiki/doku.php/prog_guide:tiled_maps
Trying to create a tiled map that also supports multiple layers. The guide says that a way is to use ...




