A 2D rendering of an object in space.

learn more… | top users | synonyms (1)

3
votes
3answers
512 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); ...
2
votes
2answers
400 views

Detect multitouch (two fingers touch) on a sprite to apply pinch zoom behaviour

I am using andengine, want to move, zoom and rotate multiple sprites individually on a scene. I have achieved "move" but for pinch zoom i am unable to get the event to two fingers' touch. Below is the ...
-2
votes
2answers
278 views

how to double buffer in multiple classes with java

I am creating a Java 2D video game. I can load graphics just fine, but when it gets into double buffering I have issues. If i run this code, nothing is displayed except for the string("hello"); but ...
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 ...
0
votes
1answer
66 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 ...
0
votes
1answer
391 views

Android: Improving surfaceView?

I'm using Surfaceview in my Android app. I have two threads, one for UI and another for rendering and updading the UI. I am limiting my frames per second to 30 fps and have employed frame-skipping ...
0
votes
1answer
184 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 ...
0
votes
1answer
333 views

Adding gesture recognizer (or dragging) to CCSprite

I'm trying to allow a CCSprite to be dragged across the screen. I've succeeded so far by doing it on a Layer level (from this tutorial). However, this only allows ONE sprite to be dragged at a time as ...
-1
votes
1answer
61 views

How would you program sprite movement in a 2-D ariel view rpg game?

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
1answer
99 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
1answer
210 views

Need ideas on how to give my levels structure

I am making an iOS game for a project at school. It is going to be a tiny bit like Fruit Ninja, as in it will have different things on the screen, and when you hit them, they die, and you get points. ...
2
votes
0answers
116 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 ...
2
votes
0answers
1k views

Best practice to use Sprites in a game using AndEngine GLES2

Currently I am having static reference to all my sprites and loading and initializing them in my OnCreateResource mthod of SimpleBaseGameActivity, But now I have to override onAreaTouched listener on ...
2
votes
0answers
85 views

Tool for editing sprites contour pixel alpha value

I have seen that most games uses sprites that have a transparent contour, that is, the pixels that belongs to the contour of the object in the WxW sprite image is below 255. It is not perfectly ...
2
votes
0answers
1k views

Tools for Sprite generation? 3D Blender model for Sprites -generation?

My speculation is that sprites can be generated rather painlessly from good 3D Blender models either to 2D or 3D. I am skeptical to sprites generated other ways because I like the ability to do ...
1
vote
0answers
154 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 ...
1
vote
0answers
134 views

Pygame animation with different size sprites

I'm trying to create a simple top-view 2D rpg, in the style of Zelda and Secret of Mana, using PyGame. I've managed to make the beginnings of a game, with an animated character walking around. ...
1
vote
0answers
650 views

Orthographic Camera Zooming

In XNA I am using a spritebatch to render a board. I have created a camera class which can provide me a view and projection matrix. Currently I am supplying the view matrix to my sprite batch when I ...
1
vote
0answers
383 views

Sprite visual effect in XNA?

Suppose I have a character sprite and I want to apply some animating effect that overlay its color, how would I do it? What I desire is something along this line: (From final fantasy tactics) It is ...
0
votes
0answers
10 views

How to unbind a sprite in an updating vector? LIBGDX framework

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
0answers
6 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 = ...
0
votes
0answers
160 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. ...
0
votes
0answers
51 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 ...
0
votes
0answers
104 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 ...
0
votes
0answers
262 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 ...
0
votes
0answers
98 views

Is there a tool to explode an existing sprite into smaller images or make an animation of it?

Is there a tool or a plugin for GIMP that allows me to automatically create an explosion of a sprite? I am not talking about some fire effects, I want the actual image to explode into smaller pieces ...
0
votes
0answers
74 views

Where i set touch effect when a spawn Srite are comming on the screen?

I just create a scene where create a spawn spirit that comes from above screen height in Landscape mode. Now i want to remove spirits when i touch on it. I tried but seems the code not works and ...
0
votes
0answers
133 views

How to set the registration point in the Flash CS6 Spritesheet export function?

I am trying to adjust the Spritesheet exported JSON file so I can import the sprites with their position at their registration point, this is how I export it now: function frameExport(frame) { var ...
0
votes
0answers
291 views

Sprite Animation Effect in isometric game

I am planning to make game like Final fantasy tactics. Right now, I have been thinking about how should I make my sprite animates. From what I found out so far (reading from ffhacktics.com), it seems ...
0
votes
0answers
542 views

Box2d : Sprite display not fit with body when rotated

I have recently achieved to render box2d Objects, and texture with sprites at where the box2d objects exists. But now I am facing another problem. When I rotate the Box2D object, the sprite gets ...
0
votes
0answers
206 views

detect sprites by tag in parallax

I've created 3 layers and added to a parallax node in my game play scene; I don't know why it crashes when I'm enabling touch, self.isTouchEnabled = YES; on one of my layers; I want that touch to be ...
-1
votes
0answers
30 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
votes
0answers
84 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 ...
-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? ...