Questions tagged [sprites]
A 2D rendering of an object in space.
1,038
questions
8
votes
2answers
5k views
How do I access variables in the Game1 class from another class in XNA?
I'm trying to write a SpriteManager class in XNA, but I need access to the Game variables. For example, the ...
2
votes
2answers
470 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 ...
6
votes
2answers
1k views
How to do smooth sprite movement on WP7 XNA
What's the correct technique for getting smooth sprite translations with XNA?
I've been developing the WP7 version of an app for a startup, so when we heard Angry Birds got ported today we wanted to ...
4
votes
1answer
965 views
Using raw vertex information for sprites rather than SpriteBatch in XNA
I have been wondering whether using SpriteBatch is the best option. Obviously for prototyping or small games it works well.
However, I've been wanting to apply techniques such as shaders and lighting ...
3
votes
2answers
1k 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 ...
4
votes
1answer
169 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 ...
9
votes
2answers
2k views
Scale my pixel art files when designing them or when rendering?
If I create pixel art files that need to be scaled up on the screen later, so that a single pixel becomes a box of 4 pixels. Should I create my pixel art with 2x2 pixels or should I create it with 1x1 ...
2
votes
2answers
500 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
2k views
OpenGLES 2.0: Rendering Multiple Sprites - Texel Corruption
I'm having a tremendous time getting the second (or additional) sprites in my game engine to render properly. The first one always works great: it is positioned and sized properly in screen coords, ...
2
votes
1answer
891 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 ...
15
votes
4answers
6k views
Where can I go to find a game graphic artist? [closed]
Where's a good place to post to find a decent game artist to create a small number of 32-bit sprites? This is for an internal code war framework so it's minimal work - maybe a couple of hours.
Any ...
4
votes
1answer
2k views
Should I be subclassing CCSprites?
When I am working with cocos2d I can add CCSprites to the layer or 'stage' and manipulate them.
Now, to do my ongoing calculations for movement AI and such, things that will always run, should I:
...
2
votes
2answers
475 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, etc......
0
votes
1answer
947 views
Position of XNA.Rectangle is changing the position a spritre is rendered to?
I'm having this weird problem where the position ocmponent of a rectangle of the XNA type is offsetting the position the sprite is rendered to as well.
I guess a broader question I'm trying to have ...
5
votes
3answers
2k views
Designing for multiple screen resolutions and aspect ratios, target one resolution then scale to meet others or use normalized values?
I feel like what I'm currently doing is stupid but would just like reaffirmation it is. Basically I'm writing games which target a certain screen resolution (800x480), so all positions, widths and ...
6
votes
3answers
2k views
Simulate 3D with 2D sprites
I was thinking about 2D games (like Starcraft), where the sprites are in two dimensions, but the objects that are "higher" in the screen are behind the other objects (I think this is obvious when you ...
12
votes
5answers
1k views
Sprites as Actors
I'm not experienced in Game Development questions, but as a programmer. In the language Scala, you can have scalable multi-tasking with Actors, very stable, as I hear. You can even have hundreds of ...
18
votes
5answers
5k views
Sprite Animation Best Practices
I'd like to get a better handle on how people in the real world are handling their animation.
Do you load 1 large image and then draw different rectangles based on the animation frame?
Do you load X ...
9
votes
2answers
2k 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 ...
0
votes
2answers
4k views
How do I draw a point sprite using OpenGL ES on Android?
Edit: I'm using the GL enum, which is incorrect since it's not part of OpenGL ES (see my answer). I should have used GL10, ...
3
votes
2answers
1k views
Sprites are sometimes blurry in Flash
I am playing around with drawing an SVG sprite (imported in through [Embed]). Depending on the coordinates of the image, sometimes it appears more crisp than others....
5
votes
2answers
4k views
Oscillating Sprite Movement in XNA
I'm working on a 2d game and am looking to make a sprite move horizontally across the screen in XNA while oscillating vertically (basically I want the movement to look like a sin wave). Currently for ...
5
votes
2answers
1k views
Best way to do large XNA animations?
What's the best way to have large animations in XNA 4.0? I have created a spritesheet with the sprite being 250x400 (more of an image than a sprite but hey ho) and there are approximately 45 frames in ...
9
votes
4answers
12k views
How to improve batching performance
I am developing a sprite based 2D game for mobile platform(s) and I'm using OpenGL (well, actually Irrlicht) to render graphics. First I implemented sprite rendering in a simple way: every game object ...
1
vote
1answer
2k views
J2ME character animation with multiple sprite sheets
I'm working on a J2ME game and I want to have walking animations.
Each direction of walking has a separate sprite sheet (i.e. one for walking up, one for walking right etc), I also have a static ...
1
vote
2answers
2k views
Modern techniques for spriting
I would like to know the flow for making modern 2D game artwork.
How are the assets made nowadays? Bitmap? Vector-based? Hand-drawn and painted? Drawn digitally? Modeled in 3D and exported to bitmaps?...
4
votes
5answers
513 views
XNA Required information to represent 2D Sprite graphically
I was thinking about dividing my game engine into 2 threads: render thread and update thread (I can't come up on how to divide update thread from physic thread at the moment).
That said, I have to ...
6
votes
2answers
4k views
snapping an angle to the closest cardinal direction
I'm developing a 2D sprite-based game, and I'm finding that I'm having trouble with making the sprites rotate correctly. In a nutshell, I've got spritesheets for each of 5 directions (the other 3 come ...
0
votes
1answer
257 views
iPhone Game - Sprites
I have made games with cocos2d for the iphone however I am looking to move on from that, is there a good direction you could suggest? If not I was planning on using what the SDK gives me, and so for ...
8
votes
3answers
4k views
2D Top down view maps
I was wondering how this works.
Do you load the complete map when the game starts up, or do you load parts of the map at runtime?
And how would you save the maps? Would it be in XML or some binary ...
2
votes
2answers
507 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 ...
4
votes
1answer
2k views
Mixing sprite drawing with 3D primitive drawing in XNA?
In my game, I have a base Note class, and various subclasses of Note. In addition, I have a NoteCollection class which contains a collection of these Note objects and draws them to the screen. ...
3
votes
1answer
502 views
How to prepare a sprite for a game?
For example, I created my character drawing on Paint.NET using the Pencil tool and now it's a sprite like asset.
If I want him to move do I need to create many different poses for him and render them ...
4
votes
4answers
6k views
How to handle a Sprite Class?
Currently I am learning XNA and while playing around with some tutorials knowing what I am aiming for a game it made me think that the Sprite Class will be something very important and re-used a lot ...
3
votes
1answer
125 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 ...
11
votes
3answers
8k views
Rendering performance for Flash games
I was reading on SO about native flash rendering vs building a custom BitmapData frame buffer and some of the answers were a bit conflicting, so I was wondering:
...
3
votes
3answers
1k views
What's the best place to showcase my pixel art? [closed]
I recently started learning spriting/pixel art to help propel my game development endeavors and I've gotten to the point where I'd like to start sharing it for comments, critiques and other feedback.
...
3
votes
1answer
649 views
Collision and response between sprites?
What is an easy way to have sprites collide and react to the collision? E.g. if I'm writing a game in XNA or with Canvas 2D and need to write the code myself very simply.