A 2D rendering of an object in space.

learn more… | top users | synonyms (1)

2
votes
1answer
302 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
260 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
212 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
341 views

Animation with non-uniform frame sizes

How do you know when to draw the next frame if its bounding box is larger/smaller than the current? For example, in KOF, some characters have elastic arms and things of the like..How are these handled ...
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
330 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
3answers
375 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
291 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
253 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
4k 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
401 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
672 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
819 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
2answers
130 views

Replicating no. of sprites without letting the app to slow down and crash

Is it possible that if I'm making a a simple drag-n-drop game, does making a new sprite via constructor with texture as a parameter makes the game slower and depletes more memory until it crashes or ...
2
votes
3answers
412 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
2answers
949 views

How does sprite customization in 2D games work?

I´m working on the design of a new game concept at the moment and I would like to know how to handle a customization of sprites. (In 2D that is, hence the topic.) This is my scenario: The player will ...
2
votes
1answer
335 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
829 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
378 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
1answer
332 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
1k views

Make a laser beam effect with Ogre and a BillboardChain

http://www.lpi.usra.edu/lunar/missions/apollo/apollo_15/images/laser_beam_lg.gif I want to be able to such an effect, but I don't really know how the BillboardChain class works or how I can use it, ...
2
votes
3answers
148 views

Is it more efficient to encode rotation in a spritesheet or rotate at runtime?

I'm developing a game with JavaScript and HTML5 and I'm wondering about the performance implications of sprite rotations. There are two ways that I know to rotate a sprite: Rotate the actual sprite ...
2
votes
2answers
329 views

How to implement pathfinding in this situation

So I'm creating a game for android using the libgdx library. I render the map from a tmx file and in it all the water tiles have the property of blocked. My player(a sprite) moves to where I ...
2
votes
1answer
189 views

Which camera angle is used for these sprites?

I am trying to replicate these sprites: But I am not managing to make sense of how it is done. The character is facing forward ( <--- ), but you can see the front of its body instead of just ...
2
votes
1answer
125 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
353 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
320 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
2k views

2D animation example in pyglet (python) looping through 2 images/sprites every x seconds

Suppose you have two images: step1.png and step2.png . Can anyone show me a very simple example in pyglet how to loop through those 2 images say every 0.5 seconds? The character doesn't have to ...
2
votes
2answers
349 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
426 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
173 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
1answer
131 views

How do I rotate a bounding box together with a sprite?

I have a game object with a sprite that can rotate. It's a rectangle. I need its bounding box to rotate with it. How do I make sure that they can both rotate, but they're always both at the same ...
2
votes
1answer
205 views

Sprite Animation Using Multiple Images (XNA / C#)

all. Right now I am currently working on a game with my Australian buddy and I just am having such a difficult time with the spriting process. As the programmer of our game, it is my responsibility ...
2
votes
2answers
1k 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
854 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
199 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
551 views

2D RPG - Character sprite size bigger than tile size

Ok so I'm trying to make a nice little RPG game in Java & Slick2D engine, the tiles are 16x16, so the collision array is also 16x16, how ever my character sprite is 16x20 What would be the best ...
2
votes
1answer
1k views

Opengl drawing a section of a texture stretched over a quad

Current Situation I have a spritesheet loaded in for a texture when drawing the specific portions of the sheet that I'd like to have on my quads I do some simple math to get their location on the ...
2
votes
1answer
1k 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
2k views

Objective-c Cocos2d moving a sprite

I hope someone knows how to do the following with cocos2d: I want a sprite to move but not in a single line by using [cocosGuy runAction: [CCMoveTo actionWithDuration:1 position:location]]; What ...
2
votes
2answers
443 views

TileBased Game: Blitting Hero or Sprite?

So my environment is all set up and now I'm working on the movement physics of my character. I used blitting to copy over my tiles from a tilesheet. But since they are static, they are only copied ...
2
votes
1answer
495 views

DX9 sprite / font draw depth order

I need the ability to order the drawing of sprites and fonts. Some sprites need to be drawn behind and some in front of text. My problem is that my sprites and fonts use separate Begin() End() calls ...
2
votes
2answers
123 views

How can I create delays for sprite animations that work correctly when the application is killed and restored?

Please see my original question here: How should I use system time to compute delay times without stutters? In summary, I am attempting to to introduce a delay (say of 5 seconds or so) before a ...
2
votes
1answer
257 views

How to split a 2D sprite tile set into individual sprites?

I see a lot of sprite catalogs for games provided as single PNG image, like the one below. I'm interested if I have to manually create tiles from that, or if there's some program that can split it ...
2
votes
1answer
221 views

Drawing Sprites at Correct Z-Index without A Sprite Map?

My game is in HTML5 canvas, but I assume this concept applies to any language. In the past I've used a multi-dimensional array to keep track of sprite positions. Here is a simplified example: [ [ ...
2
votes
3answers
377 views

XNA Rending Bottom Half of Video, How to fix?

First off, sorry if this is a repeat question i didn't see anything similar in my searches. The issue i am having.... When running an XNA game any Video objects & related Texture2D's are not ...
2
votes
1answer
146 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
247 views

Glowing Sprites

I really enjoy the simple sprite style that is just shapes + slight glow effect. Cipher Prime uses it a lot in their games. I was wondering how this effect was achieved. Is the sprite itself just ...