A 2D rendering of an object in space.

learn more… | top users | synonyms (1)

5
votes
1answer
548 views

Unity3D - How to tessellate 2D sprites?

I use dynamic vertex lighting on 2D sprites. On larger sprites the lighting is uglier than on smaller ones. This is because every sprite is just a quad of two triangles. Not enough vertices there for ...
4
votes
1answer
269 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 ...
3
votes
1answer
332 views

Jittery Movement, Uncontrollably Rotating + Front of Sprite?

So I've been looking around to try and figure out how I make my sprite face my mouse. So far the sprite moves to where my mouse is by some vector math. Now I'd like it to rotate and face the mouse as ...
3
votes
1answer
262 views

How can I apply a “genie animation” to a CCSprite?

I am new to Cocos2D and following this tutorial. I want to animate a CCSprite with the genie effect that OS X uses for hiding windows to the dock and showing them again. Here's an example from an ...
1
vote
1answer
159 views

Cocos2d/Cocos2d-x Attaching an arrow (sprite) to another body sprite (person)

I am trying to set up a simple bow and arrow game. When the arrow hits the enemy body, the arrow's body is deleted and the arrow sprite continues to update, keeping the position correct in relation to ...
1
vote
1answer
119 views

How can I spawn a sprite based on a condition after the game starts?

How do I spawn a sprite anytime later in the game when the game starts? I'm using FlashDevelop with Flixel. I did try it in override public function create(): void. It works only in the beginning. I ...
1
vote
1answer
404 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
14 views

Change sprite at touch input: “scroll through characters”

if(Input.GetKey("y")){ gameObject.GetComponent<SpriteRenderer>().sprite = Characters[0]; } if(Input.GetKey("u")){ ...
0
votes
1answer
34 views

Card game - creating card Listener

I am making a card game where there are 21 cards on hand and 2 options from where user can draw cards to his hand and throw a card from hand. I am new on game development and I'm following the ...
0
votes
1answer
113 views

How to render the sprites for a 2D soft body physics system

This is not a question as to how to achieve soft body physics, but rather if I have a mass-spring system how to modify a sprite with that information. I am using unity so I dont have access to vector ...
3
votes
0answers
484 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. ...
2
votes
0answers
624 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
0answers
49 views

What causes sprite tearing / corruption in unity PC stand alone running on Windows XP?

The image below is representative of my client's experience running the released version of an app I created for him on his Windows XP Machine. I built it using Unity 4.5. The messed up buttons ...
1
vote
0answers
68 views

libgdx - Image artifacts when downscaling image

Why does this border appear around the edges when I downscale a bitmap and how do I avoid it? I tried every filter I know, the results go from bad to worse. Here's the original bitmap:
1
vote
0answers
63 views

Tiled map editor and objects

Ive been searching for an easy way to group multiple sprites of a spritesheet into a single entity. Im using tiled editor as written at the title. Some objects might be larger than the tile size and i ...
1
vote
0answers
790 views

Unity 2D loading Spritesheet Atlas at runtime from web and using it dynamically

I am new to Unity (came from AS3/Starling) and just started for 2D games in Unity. I have a spritesheet / texture-atlas (many different sized images packed in a single png) which I want to download at ...
1
vote
0answers
233 views

LibGDX render sprites in tiled-map format ( convert texture to sprite )

I am creating a game in which till now I have used textures to create A 2D tiled game. I have created a matrix which converts the touch co-ordinates into a array index number and according to that ...
1
vote
0answers
171 views

Using fully cropped sprites with TexturePacker and Cocos2d

When using texturepacker, you can set your trim-mode to crop. This is nice, because when a sprite loads in cocos2d your bounding box will only be the visible area of your sprite - which is useful for ...
1
vote
0answers
459 views

Windows 8 C# Compile spritefonts for MonoGame without XNA

Hello Stack Exchange community. Recently, I've been attempting to in some way generate sprite-fonts into XNB files for use with MonoGame. The issue is however, as you may be aware, XNA is very ...
1
vote
0answers
319 views

Create a touchpad-joystick using texturepacker2

I am adding a touchpad control to my game, using TexturePacker for loading images into the image-atlas. I have followed this tutorial to add the joystick. Everything is the same apart from the loading ...
1
vote
0answers
198 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 ...
1
vote
0answers
521 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
12 views

iOS Sprite Kit - Distort Body Upon Collision

I am trying to create a surface that will distort upon collision of another object. Imagine a rubber partition that bends outward when shot with a projectile, and then retracts back to it's original ...
0
votes
0answers
31 views

Change 2D Angle Into Isometric Angle

i Rendered My Sprite With 72 Angles In Isometric View. Rendered Frame Number 0 And Angle 0 Is When My Sprite Looking Right And And I Rendered My Sprite Every 5 Angle. In My 2D Game My Sprite Moving ...
0
votes
0answers
56 views

How to overlay texture materials on top of each other in Unity 2D tiled game

I'm learning how to do a 2D tile-based game. So far, I have followed this tutorial which seems like a good starting point. With his method of building the raw triangles and then applying the uvs, I ...
0
votes
0answers
15 views

CCActionMoveBy doesnot working properly when the action called for many of the sprite in cocos2d

I have an issue with CCActionMoveBy when I call the movement action for many of my sprites. I need to move to a certain position and then remove it from the scene. My problem is If the call the ...
0
votes
0answers
74 views

How to get rid of half pixel artifacts?

I've been having a bit of trouble using OpenGL to make 2D games. I am using a traditional ortho perspective with just some sprites being rendered and moved around. It all works perfectly but there is ...
0
votes
0answers
69 views

Create a sprite in Unity that has a border that does not change its width when scaling

I am trying to create a box that has a 10 pixel border and when I scale that box I would like the border to stay 10 pixels no matter the size. I am currently trying to create an empty game object ...
0
votes
0answers
157 views

Unity 2.5D Character Movement

I'm wondering if anyone can point me in the right direct as to how to take a 2D character/sprite in Unity and have said character turn corners in a 3D style. Solutions or resources welcome.
0
votes
0answers
57 views

How do I open/edit a *.xnb file in XNA Game Studio 4.0?

I've downloaded a *.xnb font sprite, but I don't know how to open/edit it. I installed XNA Frameword 4.0 in VS 2010. Thanks for your help!
0
votes
0answers
12 views

Seperate game sprite

I want to create java game Jump Rope , something like this : http://www.juicycraft.com/HTML5/JumpRope/ do I need to draw two seperately sprites (one for character and one for rope ) or only one ...
0
votes
0answers
38 views

Is there a way to make Unity 4.3 Sprite packer keep caching even after restart unity?

It's bother me a lot. It has to pack every time I open unity. It took sometimes until it finish. If I drag new image into project and do not specify any packing tag, it still repack. I know there's a ...
0
votes
0answers
53 views

Monogame - How to make a character move automatically right when the game starts?

I am working on an infinite runner using Monogame and Visual Studio. I have a basic sprite that can move back and fourth. But I want to know how I can have objects, like platforms, moving ...
0
votes
0answers
155 views

cocos2d-x .. How to detect which sprites are underneath a touch event

I was wondering what the best solution is in the following scenario: Lots of sprites floating around on screen. A user can touch one sprite and drag to another sprite. Throughout this entire time, I ...
0
votes
0answers
117 views

Sprites on scrolling tmx map (LibGDX)

I have .tmx map loaded, and a camera to see it. The map is bigger than the camera viewport, so I need to move that viewport scrolling the camera. Now I want to draw a sprite on the map. To do that, at ...
0
votes
0answers
47 views

Is there any benefit to using sprite sheets in Java with awt?

I am aware that this question addresses the issue for flash and this question addresses the issue vaguely for miscellaneous rendering engines like OpenGL. The way the latter asserts the superiority of ...
0
votes
0answers
45 views

Transform texture coordinates when using shader

Assuming I define four vertices of a quad with texture coordinates that cover a whole texture or region of a texture, I can animate these coordinates by setting a transform using SetTransform( ...
0
votes
0answers
41 views

AndEngine: image partially disappear on finger move

I am new to andengine and I want to create an app like that: I have 2 images one on other now what I want is if I move my finger on upper image It should partially disappear only from the position ...
0
votes
0answers
109 views

sprite reset method not working in update thread(andengine)

I have sprite array with length of 8 and I am trying to reset sprites position in scene's update thread but it doesn't work. However I tried to reset sprites in sprites modifier listner which works. I ...
0
votes
0answers
27 views

Turning on collision crashes game

I am getting a null pointer excecption to both my sprite and level. I am working on my mob class, and when I try to move him and the move function is called, the game crashes after checking collision ...
0
votes
0answers
45 views

AS3 - At exactly 23 empty alpha channels, images below stop drawing

I noticed, while trying to draw large numbers of circles, that occasionally, there would be some kind of visual bug where some circles wouldn't draw properly. Well, I narrowed it down, and have ...
0
votes
0answers
336 views

Limiting game loop to exactly 60 tics per second (Android / Java)

So I'm having terrible problems with stuttering sprites. My rendering and logic takes less than a game tic (16.6667ms) However, although my game loop runs most of the time at 60 ticks per second, it ...
0
votes
0answers
78 views

C# Fit an image into the outline of a 2d sprite character body perfectly

Ok, I'm trying to wrap my head around how to begin doing this. I tried on stackoverflow.com but my question was downvoted/closed for being "too broad"; so here goes again in more detail. I have two ...
0
votes
0answers
38 views

Box2d not showing consistent behaviour with sprites

Box2D newbb here. My question is in regards to this create js project:http://mboyeman.com/dashingdog/ (runs best in IE...:3) I wrote a function(assignBlockBodies) to give 2D Edges to sprites based on ...
0
votes
0answers
86 views

How do I get a sprite's angle after collision?

I'm using Cocos2d (version 3) and I want my hero sprite to be jostled around by incoming enemy sprites. The Chipmunk-based physics work, but I need some way to track the rotation of the sprite after a ...
0
votes
0answers
153 views

Unity not updating sprite animations (possible bug)

I have a simple animation of a foot which i want to change sprites from one sprite to another, which is seen in the following two images: now as one can see in the animation timeline there is a ...
0
votes
0answers
47 views

Register Modifier to Parent Entity

As far as I know, with Andengine if you register a modifier to a parent, all the children will also be affected by the modifier. If I am wrong please let me know. I'm currently working on a game and I ...
0
votes
0answers
82 views

Dealing with 2D tiled maps in DirectX

I'm new to DirectX. I'm pretty much to the point to where I can create some sprites and attach textures to them, but I'm not fully cognizant of the entire model of textures and sprites or exactly how ...
0
votes
0answers
158 views

Sprite Rendering Cost Calculation

First of all asking before asking this question I have already read following post for the clearance of my mind. Sprite Renderer Texture 2D I want to change my background texture as per device ...
0
votes
0answers
123 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 ...