A 2D rendering of an object in space.

learn more… | top users | synonyms (1)

0
votes
2answers
51 views

Unity sprites rendering problems on Android

I'm creating a simple 2d game for android, with normal sprites and animations. The problem is that when I open the game on my smartphone (Samsung galaxy trend plus), The sprites are rendered this way: ...
2
votes
1answer
345 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
381 views

How to draw small sprite bigger?

I have created an image with the resolution of 25px(width)*34px(height) (I know it's unusual, however it doesn't bother me now). The problem is that when I try to display it by creating a bitmap, it ...
2
votes
3answers
347 views

shuffle a sprite group

Is there a way to shufle a group of sprites created with: pygame.sprite.Group() I have tried using random.shuffle but it apparently doesn't work on sprite groups.
2
votes
4answers
1k views

sprite group doesn't support indexing

I have a sprite group created with pygame.sprite.Group() (and add sprites to it with the add method) How would I retrieve the nth sprite in this group? Code like this does not work: mygroup = ...
-1
votes
0answers
20 views

simple sprite files sequence viewer? [closed]

I wonder does anybody know where can i find simple sprite animation viewer? I mean just to view animation of sequence of separate png files. (NOT editor or sheet viewer/maker). also i m looking it to ...
1
vote
1answer
61 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 ...
-4
votes
0answers
35 views

sombody hase a good sprite for a heart? [closed]

I am searching for good sprites of hearts, its not for a lifebar it needs to be a love heart becuse i'm making a game based around valentine. And it needs to be a heart from 64x64 pixels.
5
votes
2answers
89 views

How do I turn an image into a Box2D physics object?

I'm using Box2D for a Game Programming course, and I was wondering if it is possible to choose the best shape and size of shape for the rigidbody/fixture for a sprite based on its transparency. I've ...
-3
votes
0answers
17 views

Need a Sprite creator program for Ubuntu [closed]

Is there any program to create 2D sprites for games with Linux support?
0
votes
2answers
42 views

Positioning 2D (non-UI system) game objects

As an old Flash dev I'm slightly confused about how you position game objects on the screen in Unity since game objects have no width or height (only a scale). Let's say I have a container gameobject ...
-1
votes
0answers
32 views

Making Computer Sprites and Backgrounds [closed]

THIS IS NOT A DUPLICATE I AM ASKING ABOUT COMPUTER SOFTWARE NOT HAND DRAWING My question is how can i make computer sprites and backgrounds with a computer software. I tried to use adobe without ...
0
votes
2answers
241 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 ...
0
votes
0answers
30 views

how can I load a sprite to a sprite variable in my script?

I want to add to my Sprite variable x2 a sprite in my code. Here's my code: Sprite x2; void Start () { x2 = ? } how can I tell the code to add a certain sprite to that variable?
5
votes
2answers
4k 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 ...
3
votes
1answer
51 views

Scene2D Actor walking animation?

I used to extend my Player/Entity class with Sprite, that way I could create a walking animation using SetRegion and super(stilldown.getKeyFrame(0)); I've recently started porting everything over to ...
0
votes
1answer
30 views

Sprite cut in half after placed on Scene

I have noticed a very odd behaviour in Unity 5.2.1. When I drag and drop a Sprite into the Scene, it's cut in half like this: I tried with PNG and PSD formats but it didn't help. Although when I ...
4
votes
2answers
503 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 ...
4
votes
1answer
145 views

Doom-style 2.5D Movement Animations

I've started working on a demo for my 2.5D game. For a basic scene I figured I would just use the good old fashioned doom sprites textured to a double sided plane. Simple enough. But I've been ...
1
vote
1answer
37 views

Rendering a dynamically sized box

So in games where there are textboxes with different sizes appearing, how does one actually render them efficiently? Games like Final Fantasy IX have dynamically sized speechbubbles for example, each ...
2
votes
2answers
617 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 ...
8
votes
3answers
4k views

Why does Unity in 2d mode employ scaling and the default othographic size the way it does?

I previously used SFML, XNA, Monogame, etc. to create 2d games, where if I display a 100px sprite on the screen, it will take up 100px. If I use 128px tiles to create a background, the first tile will ...
1
vote
2answers
167 views

How to fix overly blurred texture / image in unity?

so, I'm not sure what caused this, let image below do the explanation : How to fix the overly blurred texture in unity? It's so frustrating, since I can't get it right, because when I tried it in ...
1
vote
1answer
69 views

LibGDX - Rotating sprites and still keep the positioning between them

I've been struggling with a problem regarding rotations and relative positions between sprites (in this case, the sprites are just lines) - a bit off-topic, but should i be using the ShapeRenderer ...
6
votes
1answer
1k views

How to create a 2D region where sprites are automatically wrapped?

Edit Finally managed to get this to work, after two separate questions! Here's a video demonstration: http://www.youtube.com/watch?v=nZ7e0jegvs0 Will write an article about it later when I have a ...
6
votes
2answers
342 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 ...
0
votes
1answer
40 views

Positioning partials of character sprite animations

I'm not entirely sure how to best explain what I'm doing. Maybe I'm going about this completely the wrong way. If any of you find that that is in fact the case, I would appreciate it if you told me ...
1
vote
1answer
346 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
3answers
141 views

In what size should i design sprites for unity iOS?

I am developing a 2D platform game in unity.I have conceptualised the game and have to design the art assets/sprites, but the problem is at what resolution or size do i design them? If I target the ...
1
vote
1answer
41 views

Polygons and actionlisteners Libgdx

I've been browsing these forums for a while now and I nearly always am able to find an answer without having to ask my own question! Such a great community! This is the first time I've been stumped ...
0
votes
2answers
39 views

Calculate ticks for animation delay

Hi guys I am trying to calculate the correct elapsedTime for each frame in my animation. Example I have a sprite called stance that has 20 frames I want to give each frame a tick delay property that ...
1
vote
1answer
66 views

Is it possible to interpolate different sprites?

I can interpolate different animations based on position, rotation, and scale. I want to do the same for different sprites, automatically. For example, lets say I have a soda can being crushed. I ...
7
votes
1answer
1k views

Inline sprites in Unity's text?

How can I use different materials when using the tag for Unity's rich text syntax? I want to be able to have sprites that are inline with my text without having to create custom fonts. Here's what I ...
2
votes
1answer
957 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 ...
3
votes
3answers
2k views

Sprite Animation in XAML/C# for Windows 8 Modern UI (Metro)

I'm working on a project that requires doing sprite based animation in XAML / C# for a windows store app. I've worked out a method for displaying the animation, but it causes flickering during the ...
1
vote
1answer
214 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 ...
0
votes
1answer
87 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 ...
2
votes
2answers
318 views

Unity 2D Alpha cutout layer for Sprites

I'm trying to make a simple Fog of War effect for my 2d game, similar to these: . I want to have a sprite layer of black and then have a sprite to cut out itself from the black layer, leaving a ...
0
votes
0answers
32 views

Using canvas graphics instead of traditional sprites in phaser

Trying to learn phaser (total beginner with mild js experiance) and I'm following tutorials and such where everything is using sprites. I'm trying to get by with basic canvas shapes instead of ...
1
vote
1answer
42 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 ...
1
vote
1answer
27 views

How do I make a 2D sprite flash green when tapped?

I have a sprite that is based on an image of a gray circle. When the user touches the sprite, I want the sprite to flash green, as in I want the circle to appear to turn green for 0.2 seconds. I tried ...
1
vote
1answer
40 views

How can I combine sprites and attach them to a GameObject?

I have the following sprites: Background Foreground Combined they should look like this: The first problem is Unity can only show one sprite with its Sprite Renderer, so I can't combine them ...
2
votes
1answer
58 views

Looking for a clever way to differentiate objects [closed]

I have a lot of cubes in my game (2d squares) and I decided to add some skins to them. However the colors that they have don't really make them look appealing. For example, I have this sprite: ...
-1
votes
1answer
38 views

Which Sprite would be rendered out of two overlapping sprites in a 2d world?

For example, in a 2d setting, I have two sprites(one of green color and other of blue) of same size and y-axis and are at some distance apart from each other in x-axis. If there distance is gradually ...
4
votes
1answer
235 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 ...
0
votes
0answers
40 views

Difference between sprite and texture? [duplicate]

Can you please explain the difference between texture and sprite? When we zoom in a sprite, it appears blurry because it's basically an image. Is it the same for a texture? I read this comment on the ...
0
votes
1answer
80 views

Why is the alpha value of a Sprite in LibGdx 0.99607843 and not 1?

I'm developing a game in LibGDX and one of my problems is related to the alpha value of a Sprite object. If I create a new Sprite sprite object then sprite.getColor().a is equal to 0.99607843 and not ...
0
votes
1answer
32 views

Texture becomes white box when drawing it?

My problem is that when I try to render my sf::Sprite it only renders a white box in my window. I did some reading on this and couldn't really find anything that helped. Some said that it's because ...
0
votes
0answers
91 views

Re-design a 8/16-bit sprite

I'm new to game development, and my skills on photoshop are not that great... I was planning to try to convert a old game to HD, but for this I need HD sprites... what is the best way to convert a ...
1
vote
1answer
43 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 { ...