A 2D rendering of an object in space.
3
votes
2answers
579 views
How to store character moves (sprite animations)?
So I'm thinking about making a small rpg, mainly to test out different design patterns I've been learning about. But the one question that I'm not too sure on how to approach is how to store an array ...
3
votes
2answers
2k views
Scrolling 2D sprites on a map with a camera
I'm working on a 2D sprite-based strategy-type game (ok, full disclosure: it's a tower defense game), and I'm having a problem getting the actors to behave correctly when I move the camera.
I've got ...
3
votes
1answer
751 views
How to create a 2D region where sprites are automatically wrapped?
Edit
Finally managed to get this to work, after two separate questions! Here's a video demonstration:
http://www.youtube.com/watch?v=nZ7e0jegvs0
Will write an article about it later when I have a ...
3
votes
3answers
4k views
Bounding box of a rotated rectangle (2d)
I can see this has been asked before in various ways. I am struggling to work it out though hence asking again.
2d sprite that moves and rotates. I'm looking to contain it in a bounding box as it ...
3
votes
1answer
115 views
Need some advice on a java api to use for a 'presentation display board' - based on game 2d/3d tech
As part of the project i am working on I am looking to produce some software that works on a LCD display (think call center info boards) and displays various graphs (the bars grow etc in realtime, so ...
3
votes
1answer
225 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
3answers
162 views
Collision and Graphics integration
I'm a little confused about the integration between collision and graphics. They both need to share the same position in the world. The most obvious choice is the center of the entity, which is good ...
3
votes
1answer
1k views
Spritesheet per pixel collision XNA
So basically i'm using this:
public bool IntersectPixels(Rectangle rectangleA, Color[] dataA,Rectangle rectangleB, Color[] dataB)
{
int top = Math.Max(rectangleA.Top, rectangleB.Top);
...
3
votes
1answer
137 views
Coordinate based travel through multi-line path over elapsed time
I have implemented A* Path finding to decide the course of a sprite through multiple waypoints. I have done this for point A to point B locations but am having trouble with multiple waypoints, because ...
3
votes
3answers
625 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);
...
3
votes
1answer
2k views
Rendering shadow sprites in cocos2d-x
I am writing a 2D game with cocos2d-x. I want to put a "shadow" sprite on a background sprite using the equation:
MAX(0, Cd * 1 - Cs * S)
where Cd is the destination color (that is, a background ...
2
votes
1answer
429 views
How do I make a jumping dolphin rotate realistically?
I want to program a dolphin that jumps and rotates like a real dolphin. Jumping is not the problem, but I don't know how to make the rotation. At the moment, my dolphin rotates a little weird. But I ...
2
votes
2answers
207 views
What kind of projection is used here?
Tibia is a 2d game, but it's sprites are drawn using certain kind of orthographic projection that is not the same I'm used to:
I'm trying to figure out what projection is used here. I've guessed ...
2
votes
1answer
518 views
Rotating a group of sprites - How to calculate origin
I am rotating a group of sprites in XNA, which I developed with the help of the following example: http://msdn.microsoft.com/en-us/library/bb194912%28v=xnagamestudio.10%29.aspx
It all works very ...
2
votes
2answers
278 views
How do you handle animations that are for transitioning between states?
How does one usually handle animations that are for going between a game object's states? For example, imagine a very simple game in which a character can only crouch or stand normally. Currently, I ...
2
votes
3answers
182 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 ...
2
votes
2answers
156 views
Loading Texture2D is extremly slow on XBOX360
I have ~100 sprites for each level im my XNA game. On windows it takes ~2 seconds to load them all. Unfortunately on XBOX360 it takes ~30-60 seconds. Am i doing something wrong? Essentially the ...
2
votes
3answers
3k views
Sprite sheet generator
I need to generate a sprite sheet with squared sprite for a 2D game. How can I generate a sprite sheet where each frame has x = y? The only think I have to do is to "insert" some blank space between ...
2
votes
1answer
297 views
Sprite vs 3d Model in Flash Facebook Game
I'm looking at creating a real time strategy/tower defense mashup game for facebook (and other platforms like google+) along the same feel, but of course different mechanics, as backyard monsters.
...
2
votes
1answer
126 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
3answers
332 views
How can I create a spritesheet animation with big images?
If I have a 200x200 pixel sprite, and I want to create an animation for it with 30 different frames, how can I accomplish that? I can't put them on one texture/spritesheet.
2
votes
1answer
205 views
What exactly are sprites and entities and what are the differences between the two?
Well I was looking at a few game based tutorials, as well as articles. I found out about two terms:
Entities and Sprites. Now they seem related but different, what is each and how are they the same ...
2
votes
2answers
200 views
Is it better to cut and store all sprites needed from a spritesheet in memory, or cut them out just-in-time?
I'm not sure what's best practice here as I have little experience with this. Essentially what I am asking is...
if it's better to get your single PNG with all your different sprites on it for use ...
2
votes
2answers
3k views
Exporting the frames in a Flash CS5.5 animation and possibly creating the spritesheet
Some time ago, I asked a question here to know what would be the best way to create animations when making an Android game and I got great answers.
I did what people told me there by exporting each ...
2
votes
1answer
327 views
Is there a technique to creating a “black hole” background in XNA?
I'm creating application in XNA 4.0 and am trying to create a specialized background.
I'm familiar with the creation of a parallax scrolling background but I'd like to create a background image that ...
2
votes
1answer
568 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
2answers
636 views
State of the art in image compression?
I'm looking for good algorithms for compressing textures offline (ie decompressing them at install or load time, I know about using DXT/3DC to save runtime video memory, but these create awful visual ...
2
votes
1answer
175 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 ...
2
votes
2answers
125 views
How can I draw a texture line by line
I wish to draw a texture to the screen line by line (horizontal lines).
Can I do this in xna?
At first I wish to just start at the top of the texture, draw one single horizontal line of pixels and x ...
2
votes
3answers
351 views
Move a 2D sprite into an irregular terrain
With a tile based engine, in my knowledge, is not possible to move a sprite into an irregular terrain. So which are the techniques to use for implementing that?
Maybe an hexagonal tile based engine?
2
votes
1answer
228 views
Customize Colors for Sprites in Web Game
So I'm working on an html5/javascript/css3-based game. Without going into too much detail, I'm thinking of having the characters be simple 8 or 16-bit style sprites, but I'd like to allow the user to ...
2
votes
2answers
575 views
How do I apply pixel shader to specific sprite in XNA 4.0 in a spritesort FrontToBack?
I have a set of sprite drawn in FrontToBack sortmode. In XNA 4.0, the effect must be as an input argument of Begin() function of SpriteBatch. However, If I reinvoke the function, then the sprite ...
2
votes
2answers
2k views
Sprite-sheets vs Sprites/MovieClips in Flash
We create 3D models in Maya2011 and create PNGs and import the bunch into Adobe Flash CS5 to create a sprite.
I read somewhere that sprite-sheets can save space over making the sprite in Flash. How ...
2
votes
1answer
1k views
How to “swing” bounding box and update collision for sprite swinging a weapon?
I have a simple question about sprite swinging weapons. I am making an RPG and would like something other than stabby-swords, so why not swinging swords?
I have a bounding rectangle for them, and the ...
2
votes
2answers
2k views
Cocos2d rotating sprite while moving with CCBezierBy
I've done my moving actions which consists of sequences of CCBezierBy. However I would like the sprite to rotate by following the direction of the movement (like an airplane). How sould I do this with ...
2
votes
1answer
323 views
Rendering an explosion in 3D Studio Max to a spritesheet?
I'd like to render a 3D explosion in 3DS Max but into a sprite sheet. My main problem is that I need to use alpha values instead of the viewport background (which is usually black).
Any ideas how I ...
2
votes
2answers
560 views
XNA 4.0: Trouble Aligning an Animating Sprite (Texture Origin)
I'll try to explain this as best as I can.
I'm trying to build a game where there exists a "Surfer" who is surfing down a rail.
I have a sprite sheet for the surfer however I have been running into ...
2
votes
1answer
308 views
What is an OpenGL equivalent to ID3DXSprite?
As a Direct3D developer I can use the ID3DXSprite class (in D3DX library) for drawing 2D graphics. What's the best way to implement this functionality in OpenGL?
2
votes
3answers
761 views
How to animate a character from a sprite sheet?
I'm making an online game, and I had been using a blank square as the character until recently. Now I want to add a real, animated character.
I downloaded a free sprite sheet which has 12 (3x4) ...
2
votes
1answer
90 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 ...
2
votes
1answer
244 views
High volume sprite management in entity component system
I'm working on an entity-component-system based 2.5d game. That is, entities are groups of components that are processed by systems.
I am having a hard time seeing how a sprite rendering system, that ...
2
votes
1answer
222 views
How can you represent equip-able items in a 2d game?
I've been working on an item system for a post-apocalyptic RPG, with diablo as inspiration, and it would be awesome if I could visually represent an item that can be equipped on the player sprite. I ...
2
votes
2answers
305 views
How optimal do you think maintianing states in a sprite class?
Currently i'm working on a sprite system which will have frames which make animations.
Usually a sprite contains current position, current frame number to be displayed in the running animation, ...
2
votes
2answers
395 views
Clipping Sprite Sheets with Variable Placement
I was looking at some sprite sheets at sprite sheet database. I noticed that some of the sprite sheets had several different objects placed together in one file. Some of the sprites, such as movement ...
2
votes
3answers
147 views
Sprites saved in INA and AN format?
im not sure if this is a suitable question but i found a game that had all it is sprites and stuff saved in INA and AN format and i got curious to know which program is it...
Or is it some sort of ...
2
votes
2answers
376 views
Point Sprites vs Textured Quads in Open GLES 2.0
I'm wondering what would perform better, point sprites (GL_POINTS) or regular sprites (GL_TRIANGLES). Here's the scenario:
I am developing a simple particle system to allow me to produce various ...
2
votes
1answer
618 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
168 views
XNA Framework sprite vectors and also scaling
I'm working on making my first Pong game with XNA Framework 4.0. Right now i've put 2 pong paddles and a ball (they have separate classes). In the "Paddle" class i've made a function that returns a ...
2
votes
1answer
2k views
AndEngine sprite movement
I want to ask that I have a player in my game. I may walk. I have a image which has five different frames for walk and two frames for standing position. I want to ask that how can I change the images ...
2
votes
1answer
221 views
Space Invaders-type game: Keeping the enemies aligned with each other as they turn around?
OK, so here's the lowdown of the problem I'm trying to solve.
I'm developing a game in PyGame that's a cross between Space Invaders and Columns. I'm trying to make the motion of the enemies similar ...

