A 2D rendering of an object in space.

learn more… | top users | synonyms (1)

2
votes
3answers
411 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?
0
votes
1answer
409 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 ...
23
votes
8answers
9k views

What is a good tool for producing animated sprites? [closed]

Has anyone come across a software package that allows you to build animations in a similar way to how you can in Flash (i.e. using techniques such as tweens & bones & easings, etc) and then ...
1
vote
1answer
76 views

Issues with background coordinate configuration in objective c with runAction?

In my game I want to have two backgrounds going one after the other creating a continuous loop moving to the left. However, right now one goes, and the other does not follow it. Here's what I ...
1
vote
2answers
168 views

Defect in polygon sorting [closed]

I have a 2D game with sprites that come from texture atlases. I'm trying to resolve the sorting of my sprites for rendering. I want two sprites to be ordered by their order of insertion, or z-order, ...
0
votes
1answer
340 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 ...
1
vote
1answer
994 views

Sprite Animations in XAML for Windows Phone 8

I'm developing a 2D game for windows phone. It will feature rather simple 2D graphics and animations. I can get most things done using XAML an storyboards for animations. The performance is fine as ...
0
votes
1answer
171 views

xna: Methods for having sprite characters in 3d game?

Methods for having sprite characters in 3d game? I am making a game much like Doom. The world is 3d but objects and characters are 2d sprites. I am not asking about billboarding objects. I am asking ...
1
vote
3answers
361 views

Question about creating a sprite based 2-D Side Scroller with scaling/zooming [closed]

I'm just wondering if anyone can offer any advice on how best to go about creating a 2-D game with zooming/scaling features akin to the early Samurai Showdown games. In this case it would be a side ...
0
votes
1answer
624 views

Ligdx Box2d : convert box2d coordinates into screen coordinates

I'm new in libgdx and i have a little problem. I created a body in box2d and i want to assign it a sprite; for that i need to get the position of the body,then insert into the main loop the updated ...
7
votes
7answers
1k views

What's the best way of translating a 2D vector into the closest 8-way compass direction?

If you have a 2D vector expressed as x and y, what's a good way of translating that into the closest compass direction? e.g. x:+1, y:+1 => NE x:0, y:+3 => N x:+10, y:-2 => E // closest ...
8
votes
2answers
631 views

Following a path in a smooth fashion

I am currently making a 2d tower defense game with a static, predetermined lane that the enemies follow (i.e. towers cannot block the path and path finding is not the problem I am trying to solve). I ...
1
vote
0answers
176 views

Detect Sprites, they are in Shape or Not which random draw in Cocos2d

I have searched a lot on web and found some of help ful links as exact my question. Link 1 Link 2 But still i am not success to achieve this, i have done some of code lines, as like draw line by ...
4
votes
3answers
2k views

Smooth Sprite Movement - Don't Add Velocity to Position?

I am trying to figure out if there is a way to move a sprite smoothly on the screen at different speeds without stuttering, but keeping the effect that it's moving smoothly; especially at faster ...
11
votes
1answer
457 views

How do I create multiple 2D spotlights?

I'm looking to create a 2D "spotlight" effect that allows a spotlight on multiple entities. I.e., as if several sprites were holding torches. For a single entity (one spotlight), I use a technique ...
4
votes
2answers
433 views

Are 2D art assets typically created at their intended in-game display size?

I'm wondering if game makers create their sprites smaller than their intended in-game size in order to be more efficient or whether doing that produces unacceptable quality.
-6
votes
1answer
608 views

How can I make sprites like diablo's for my soon-to-be isometric rpg? Like in all directions [closed]

(xna newcomer)I can use blender(3d modelling tool). I just can't make people, but if I have to, I'd learn it. How can I do that? I plan on making a lot of armor sets, equipments too. How would I go ...
1
vote
1answer
818 views

haxe level scrolling

How would level scrolling be implemented with haxe and nme? I started plying with haxe and currently the only way to display things on screen is by using nme.display.Sprite. I don't think changing ...
3
votes
2answers
149 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 ...
3
votes
0answers
190 views

Letting the user draw a Polygon Body and Image

In my game, I want to provide the user with a drawing feature. By free hand drawing, the user creates a polygon shape. Then, in my game implementation, I have to create a body for the found vertices ...
1
vote
1answer
92 views

When to use pygame.sprite.GroupSingle?

I'm doing a game in which i have a ball which is controlled by the keyboard and the goal is to get is out of a maze without touching the walls. I've added my ball sprite to GroupSprite vehicle = ...
0
votes
3answers
336 views

Dynamic Sprite Scaling in SDL?

I was wondering if I could get a player sprite effect similar to the one in this video using SDL (without openGL). If not, does anyone know how I might achieve that effect using SDL/OpenGL?
2
votes
1answer
351 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 ...
1
vote
3answers
1k views

Component-based Rendering

I have component Renderer, that Draws Texture2D (or sprite) Then I have method OnUpdate, and there should be my rendering code, something like spriteBatch.Draw(Texture, Vector2.Zero, Color.White) ...
1
vote
1answer
156 views

How to handle sprite speed when objects move using Box2d?

I have a basic platformer using Box2d that works great. However, I now want to stop using my default square, and implement some running and jumping animations. How can I ensure that: When running, ...
0
votes
2answers
616 views

Multipule VBO in Opengl [closed]

I have currently in my application 2 VBO one which is a streamed buffer and for the moment the other is a static buffer. However even when the steam buffer is not bound and the static buffer is bound ...
0
votes
1answer
163 views

Camera Calculation

For my game I don't able to decide what camera resolution I have to use ? Normally I use 1024x600 landscape resolution of camera for my game and create single graphics for my game. But I found that ...
1
vote
1answer
278 views

Is using Sprites the most recommended way for doing 2d animations with Directx?

I am working on a game engine of my own and I was using Vertex buffers to create triangles and then draw textures on them. Now I want to extend it so I can do simple 2d animations using "sprite ...
0
votes
1answer
132 views

Use an external sprite or image file in flixel game in flashbuilder

Is there any way to use an external image/sprite file for the graphic of a FlxSprite instance? Say I declare my player FlxSprite as follows: player = new FlxSprite(FlxG.width/2 - 5); ...
2
votes
3answers
591 views

How do you maintain content size vs. content quality in a mobile application?

I am developing my first Cocos2d iPhone/iPad game that includes quite a few sprites, I would need approximately 80 different. As this is for both normal and HD displays I have 2x of each sprite. I am ...
1
vote
1answer
1k 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 ...
0
votes
1answer
230 views

Player sprite moving slower on iPhone 4

I just finished getting movement/jump animation for a player sprite in Xcode using Cocos2D. The basic movement algorithm is a timer that updates every 0.01 sec, changing the sprite position to ...
2
votes
2answers
228 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 ...
31
votes
2answers
2k views

In a browser, is it best to use one huge spritesheet or many (10000) different PNG's?

I'm creating a game in jQuery, where I use about 10000 32x32 tiles. Until now, I have been using them all separately (no sprite sheet). An average map uses about 2000 tiles (sometimes re-used PNG's ...
8
votes
1answer
307 views

Optimal sprite size for rotations

I am making a sprite based game, and I have a bunch of images that I get in a ridiculously large resolution and I scale them to the desired sprite size (for example 64x64 pixels) before converting ...
3
votes
1answer
253 views

Combining multiple sprites vs separate sprites

I have a character which can hold ten types of weapons. Should I: Create ten sets of animations for the character with each weapon Create animations for each weapon, and programmatically draw them ...
1
vote
0answers
473 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
2answers
841 views

How to deal with Character body parts from Design to Cocos2d

I'm trying to figure out the pattern the game developers use together with game designers: See the picture below with the independent parts: Questions: 1) Should I create different image parts ...
4
votes
2answers
1k 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 ...
1
vote
1answer
927 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 ...
4
votes
1answer
547 views

Improving SpriteBatch performance for tiles

I realize this is a variation on what has got to be a common question, but after reading several (good answers) I'm no closer to a solution here. So here's my situation: I'm making a 2D game which ...
2
votes
2answers
210 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 ...
3
votes
1answer
582 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 ...
0
votes
1answer
530 views

Lightweight sprite animation software [closed]

Does anyone know of a good lightweight sprite animator solution? I've created a couple of spritesheets using TexturePacker, but I'd like to, for example, create an XML file that tells me frames one ...
1
vote
1answer
137 views

If statement causing xna sprites to draw frame by frame

I’m a bit new to XNA but I wanted to write a simple program that would fire a cannon ball from a cannon at a 45 degree angle. It works fine outside of my keyboard i/o if statement, but when I ...
5
votes
3answers
9k 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 ...
4
votes
1answer
502 views

Batching dynamic sprites in OpenGL

I'm trying to wrap my head around how batching is done in a 2D sprite-based game. My understanding is I'd get the vertices that represent each sprite I want to draw and stuff them all into a single ...
0
votes
3answers
1k views

Sprite Animation Software That Works With Cocos2D

So the title basically says it all. I'm looking for software that would help me to create sprite animations that I could use with cocos2d by allowing me to pose a a sprite and the software create ...
1
vote
2answers
3k views

How can I draw a simple 2D line in XNA without using 3D primitives and shders

I would like to be able to draw arbitary lines in my sprite based 2D XNA game. How can I draw a simple line on screen in XNA without dealing with vertex arrays or shaders.
1
vote
1answer
451 views

Cocos2D Accelerometer Z axis

I am making a 2D scroller game where the player controls an airplane via the accelerometer I would like to know if it is possible to scale in and to scale out the sprite/airplane using the ...