A 2D rendering of an object in space.

learn more… | top users | synonyms (1)

4
votes
2answers
459 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 ...
-2
votes
0answers
4 views

where can i find ios game assets and app icons? [duplicate]

I'm making a game for ios - and publishing it. And like most solo developers i dont have a designer, so im looking for a sites where i can find: sprites app icons (icons like what's displayed on the ...
0
votes
0answers
12 views

Is it possible in Unity to Flip a 2D Sprite Without Flipping the Object it is Assigned to?

I 'built' (followed a tutorial) on a collision detection system, and when I flip the object to go left and right the collision messes up. So I have three options; find a way to modify the collision ...
1
vote
1answer
21 views

How to load sprites manually from a file in unity?

We're making a game, in which the User can apply their own textures to the game in order to make their own rooms. Is there a way to make a prefab with sprites, scripts, colliders, etc during runtime? ...
2
votes
2answers
26 views

How to instantiate a sprite from a sprite sheet using script in unity?

We are creating a 2D top down rpg, and we have multiple textures, and we need to be able to change which sprite sheet its reading from in order to change the look of the walls and floor in each room. ...
0
votes
2answers
375 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
22 views

Unity2D Sprite gone / not visible when flipped using Vector3.x

I have create game object with code using UnityEngine; using System.Collections; public class CharacterBehaviour : MonoBehaviour { private bool facingRight = true; private float moveDirection = 0; ...
0
votes
0answers
29 views

Faking Perspective/Depth using 3D images converted to 2D sprites - Can't work it out!

after a lot of searching/reading/viewing old school game videos I am still unable to work out how to achieve the effect I am after. I am currently working on a 2D "overhead view" sci-fi RPG, using a ...
0
votes
0answers
27 views

2D sprite making tool for huge project?

I recently bought spriter 2D but it was a disaster, it is not a finished product at all and i encountered so many bugs and crashes with it, so please don't suggest it. I am looking for a 2D sprite ...
0
votes
1answer
31 views

Unity tiles with wierd border flickering when moving horizontal 2D

I recently made some Tiles using a program called Pyxel Edit to create some placeholder graphics. The problem I'm having is that when I move the camera horizontal the edge of the tiles starts to ...
0
votes
1answer
101 views

Change sprite to animation in unity 5 2d (c#)

I want to do the same as this older post with one change: Change the sprite of a Object in Unity I want to use a .anim animation (created with unity) after the space key is pressed instead of ...
0
votes
1answer
25 views

JAVA: Unformed Sprite When trying to Read SpriteSheet

So Im a beginner experimenting with ImageIO. Can someone tell me why im getting this pixelated-incomplete sprite? Here's the code public BufferedImage getImage(String location) { try { ...
2
votes
1answer
829 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
1answer
30 views

Unity draw part of sprite sheet

Im working in Unity and im finding the animator isnt working for what im trying to do in my 2d game. What I want to do is build a specific animation using sprite sheets, then be able to reuses that ...
1
vote
1answer
195 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
275 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 ...
8
votes
3answers
5k views

Create a trailing, ghosting effect of a sprite

I want to create a trailing, ghosting like effect of a sprite that's moving fast. Something very similar to this image of Sonic (apologies of bad quality, it's the only example I could find of the ...
0
votes
2answers
33 views

Unity C#: strange texture/sprite problems

I've been making a gallery style shooting game, like something you'd find at a carnival, with ducks to shoot. I'd made the game and it was all working fine. However opening it today, it doesn't look ...
0
votes
1answer
8 views

Unity3D (2D) - Make sure Item Dragged Is Top Item Visually

I am using Unity 5 and making a 2D game in which many sprites will be stacked on top of each other and can then be moved by dragging. Sometimes when the users goes to drag from a pile, ones that ...
0
votes
1answer
69 views

What sprite Resolution did 16-Bit Games use? [closed]

I am making a new 16-Bit Styled game and I was wondering what the most common sprite resolution is for 16-Bit Systems.
1
vote
1answer
22 views

Animations with individual images in Phaser.js

So I have this game that I made a while back and I want to port it using Phaser. The game is made using individual PNG files for all the animation frames, and there are over 100 of them. From ...
2
votes
3answers
188 views

How can I scale sprites and maintain visual quality?

I currently have an isometric grid. This grid contains tiles. Some of these tiles have 'tree' sprites sitting upon them. If I have my tree sprite loaded from a texture with a fixed resolution, when I ...
1
vote
3answers
167 views

2D Rendering Based On Y Coordinates

I'm trying to build an RPG worldbuilder. I have seperate classes for images. Like this. Object1::Object1(int x, int y, CSDL_Setup *sdl_set, int *p_CamX, int *p_CamY) { X_pos = x; Y_pos = y; ...
1
vote
1answer
175 views

Why my dynamically generated Sprites overlap?

I'm trying to dynamically generate scene representing chess board made from sprites. I'm using two textures for these: - pieces.png (taken from here: ...
0
votes
1answer
237 views

DirectX9 Drawing Sprites out of place due to offset

This is my very first time into DirectX. Im trying to make a simple 2D game, just for learning the basics. And i've achieved that. The next step is to draw an animation using sprites. For that, i ...
0
votes
2answers
80 views

Clean way to do sprite flashing?

In old, 8-bit/16-bit games, sprites flashing every other frame were common. I don't want to use the hacks I've used before. Is there an elegant/clean way to do this? This is how I usually do it: bool ...
1
vote
1answer
40 views

Update animation based on distance traveled instead of elapsed time?

2D sprite Animation is supposed to be based on the elapsed time from the previous update so that it runs (and looks the same) no matter the speed of the machine/device it's running on. The method ...
3
votes
3answers
2k 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 ...
1
vote
3answers
194 views

2D Sprites vs UI Image Scripts in Unity

I am doing a 2D casual puzzle where the user can drag and drop some pieces into a board. The pieces are 2 or 3 or 4 tiles. Each tile may have text over the sprite. Target platform: Mobiles and ...
1
vote
1answer
190 views

Gamemaker Running Animation Flashing, showing single frame, and displaying jump and run sprites at same time

EDIT: I changed the origin of the run sprite to the center, and it is no longer hovering above the jumping sprite. It now flashes in the same location as the run sprite when moving to the side. ...
0
votes
1answer
268 views

Game sprite far too small

So I started writing an Android 2D game. I've come to the point where I want to display my character image on the screen. I read that most sprites have a resolution of 16*16, or more. So I created an ...
0
votes
1answer
22 views

Polar movement towards cursor sfml and c++

I got smooth movement down moving based on the window but I wanted to see if I could move my sprite to my cursor when I pressed w instead of just in the -y direction but everything went wrong right ...
1
vote
1answer
22 views

libGDX upload z-axis of sprite to graphics card

Background: I want to obtain each fragments position via vertex interpolation to then calculate the light vector for phong shading (L = [Fragment pos] - [light source pos]). Problem: At the moment I ...
3
votes
1answer
63 views

How can I make a scrollable text view?

I am trying to do an appication in monogame windows. I have a long text to be displayed on screen. I tried to render it on screen using spriteBatch.Drawstring, was succesful to an extent. But, the ...
1
vote
2answers
82 views

What is the movement represented by this sprite animation?

Fire Emblem 7 is a sprite based game with some interesting sprite art aesthetics. For example, see this sheet of one of the main characters, Lyn: On the last frames of the critical hit, the artist ...
0
votes
1answer
132 views

How to properly give Image source for multiple sources?

I'm writing a script to change the image on the button based on previous selection. Another script is giving the CurrentAvatar variable once previous button is pressed. My problem is i can't seem to ...
1
vote
2answers
41 views

Fading in and fading out animations

This is how I'm creating my player. Is there any way to start fading in and fading out for an amount of time when I get hit? private Texture tex = Game.res.getTexture("player"); public Player(Body ...
1
vote
1answer
55 views

Efficient method to export a lot of pre-rendered sprites from 3D models

I have a lot of 3D Characters and I wish to use them in a 2.5D game as Sprites; in doing this I have to render them from a fixed camera angle and since each should have its own atlas file containing ...
4
votes
2answers
3k 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
57 views

LibGdx Scalling sprites on Android

I have a sprite that is a few buttons but need them in the center of the screen for all android devices. I tried setting it's location to the center of the screen by dividing the orthogonal camera by ...
1
vote
2answers
118 views

How to define axis of Sprites in a CCAnimation?

I'm struggling to find how to define a kind of axis in my frames, when my sprite punches it moves back. I want to define the head as a pivot for the other sprites with different sizes. How can I ...
1
vote
1answer
230 views

Resize sprite to match camera width?

I'm trying to resize my small background sprite to match the screen width of the user's device. This is what I'm trying // Use this for initialization void Start () { // Set filterMode ...
0
votes
1answer
44 views

Sprites not showing (C# - XNA 4.0)

I'm following a tutorial from XNA GPA, but in my project, none of the sprites are loading. I've followed all of the instructions exactly, and the code works as expected when I copy it from my project ...
1
vote
1answer
18 views

libGDX sprite image not updating Event Handling InputHandler

I created a separate inputHandler class implementing InputProcessor. I'm using Event Handling (libgdx github page: https://github.com/libgdx/libgdx/wiki/Event-handling) public class inputHandler ...
0
votes
0answers
41 views

Modern OpenGL Sprite Drawing - Not Rendering

I'm trying to render sprites based of this tutorial, in LWJGL. Here's what I have so far, with descriptions of what class I use: Transformable2D is a class that holds transform matrices meant for ...
2
votes
1answer
40 views

how to accurately select a sprite on a scene with a click?

I have a scene with some sprite on it (added), the gamer has to select one of them and take the next action. What is the simplest way to select one of the sprites accurately? I am looking for a ...
2
votes
2answers
941 views

Sprite draw-order in libgdx

From other frameworks I know methods for easy ordering sprites within a spritebatch (to determine if a sprite has to be drawn in front or behind another sprite). For example in MonoGame/XNA this is ...
1
vote
1answer
48 views

SFML Library Not Rendering Sprite Texture Updates When Accessing Sprite From Lower In Framework Heirarchy

So currently I am working on a framework for a game utilising the SFML graphics library and in one of the classes representing a renderable object in the framework there is an sf::Sprite that is used ...
2
votes
2answers
189 views

LibGDX: Easy way to draw partial sprites

I am surely overlooking something, but is there an easy to draw for example only half a sprite in LibGDX? I originally thought I could do this with setBounds() but this distorts the sprite.
1
vote
2answers
46 views

Acceleration and Deceleration During Rotation

I'm attempting to have a sprite rotate in a way where its rotation speed increases until it has reached the halfway point in its rotation, to which it starts to slow down. I'm currently calculating ...