Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [sprites]

A 2D rendering of an object in space.

1
vote
0answers
42 views

How to make a sprite above my character appear on the minimap attached to the floor?

I have a project where I made 2 minimaps. One of minimaps is linked to the character of my project and the other to the floor: As I already said in the title of the question, my character has a ...
0
votes
0answers
14 views

What image size/resolution is best for a 2D Mobile Dress Up Game [duplicate]

I have begun the process of making a 2D dress up games (i.e. Pastel Girl and Cute Girl Avatar Maker). Majority of the tutorials I have seen always include things like game physics, but I don't need to ...
0
votes
1answer
26 views

Unity - SpriteRenderer. Trying to make sprite from code using Texture2d.whitetexture

I have been trying to write a method that fills a rectangle with a color. I've tried it as a new 2D and 3D project just in case, but this gives the same results. Basically, i want the script to make ...
-1
votes
1answer
28 views
0
votes
1answer
49 views

How to render a trimmed sprite?

I used TexturePacker to create an atlas for me and I've read it into my game. I can use unrotated and untrimmed sprites and it works fine. Now I would like to support trimmed sprites and I'm running ...
0
votes
1answer
27 views

How to cut polygon shape sprite in Multiple Sprite Editor Unity

Here is a sprite I have taken from internet and trying to slice it out in many smaller pieces. But the problem is I have polygon shape sprite, how to cut it out, selected in picture ? Rest are ...
1
vote
1answer
95 views

My position is “changing” when handling animation

I'm trying to learn Monogames(Old XNA) and how to develop a 2d game. I'm in the process of animating my sprites. It works but there are somethings that are weird to me. For some reason when ...
0
votes
0answers
29 views

Draw sprite outline with sprite renderer in opengl

I'm using a scenegraph with the visitor pattern to draw sprites in my 2D GameEngine. It works great. Now I'd like to render the lines of the cube the sprite is rendered onto. ...
0
votes
2answers
62 views

SFML - How to animate two Sprites with the same Clock?

I'm making a basic Street Fighter style game in SFML, and I use Clock and Time() from SFML to time the animations. Here's the ...
0
votes
1answer
21 views

How does one get sprites to hide/unhide using OnMouseDown() in Unity?

I'm right now using Unity for a school project and I need to be able to hide and unhide sprites for "expansions". I've looked all over the internet for this and I can't seem to find an answer. Here ...
3
votes
1answer
213 views

Workflow for authoring hitbox data for a 2D fighting/platformer game

I understand that collisions in fighting games are detected using hitboxes and hurtboxes associated with specific frames of the animation I am looking for techniques to author the data for these ...
0
votes
0answers
25 views

How to Correct this Animation Import Problem (from Spriter to Clickteam Fusion)?

I made a sprite. I put this sprite to Spriter for skeletal animation. It was a simple object which mostly merely rotated and which went up occasionally. I tested it, refined it here and there: it all ...
0
votes
1answer
36 views

How to rotate two textures at once in Libgdx, while keeping their relative positions the same?

I am trying to develop a game with cards, where the user can swipe left or right to tilt the cards like this. The red & white cross should stay in the same position on the yellow card as they tilt ...
1
vote
0answers
53 views

Junk movement with steady 60fps on Web canvas

I'm new to building games on canvas, and I'm trying to create one. But I encountered a problem with sprite movements. My sprites move is smooth, but sometimes it starts to "jump". FPS is stable 60 ...
0
votes
1answer
18 views

How to scale a sprite on x axis to touch the point without changing pivot?

I have a sprite. The pivot is at random point. I want to increase the sprite's scale on the x axis, without moving the pivot, until its edge touches a point at right. I have a method to set/add size....
1
vote
2answers
33 views

Unity 2D rigging parts order

Hello I have some 2d character in sprite I've rigged to use in Unity 2D.Something like this, with separate body parts. Although I've used weights and geometry, these body parts are supposed to move ...
0
votes
0answers
58 views

My sprite walking animation code doesn't work at all

This is my first time doing code for a game so I followed some online tutorials. When I got to the walking and the jumping animation I just can't get it to work whatever I do. I tried multiple codes ...
0
votes
0answers
136 views

Why are pyglet.image and texture so heavy?

Envrionment: python: 3.6.6 pyglet: 1.3.2 Here is my code and results: ...
2
votes
1answer
50 views

Why does my sprite shifts position on specific animationframe?

I have created a spritesheet to create animation. Everything is working fine untill I come to a specific frame in one animation. I have currently 3 animations loops Idle Animation Moving Animation ...
0
votes
1answer
172 views

How do I draw 2D sprites from a sprite sheet in DirectX 11 without ghosting/artifacts

I'm new to DirectX and I am trying to get my feet wet by making a simple 2D game. I chose DirectX 11 and am using the DirectX ToolKit helper library which recommended I start with DX11 and not DX12. ...
1
vote
1answer
155 views

Unity – How to keep sprites sharp and crisp, even while rotating

How can I maintain crisp, sharp edges on sprites, while avoiding the aliasing caused by rotation? None of the things I've tried produce a pixel-perfect non-rotated block, while allowing rotation ...
1
vote
1answer
129 views

Why Unity3D 2018 UI looks bad and very sharpy?

I update my project from Unity 2017.1.1 to 2018.3.9 and almost everything is OK except UIs. All of UIs like Images,Buttons,texts,text mesh pro, sprites and others looks very sharpy and pixel pixel ... ...
0
votes
1answer
140 views

Pygame Error AttributeError: 'pygame.Surface' object has no attribute 'add_internal'

I'm making my first game of Pygame. I'm going to create groups for making collisions but when I add an object to the group, I get an error in sprite.py (Pygame's Files) ...
0
votes
1answer
33 views

Unity Rendering (Bug): Objects rendered as multiple instances after repositioning

Context: I am currently making the menu for my game demo. It involoves "Raindrop"-Gameobjects (Sprites) being repositoned and recolored after a random amount of time. I do this by instantiating a ...
1
vote
1answer
56 views

Bitmap drawn with Graphics.DrawImage flickers

I am working on a space invaders clone using bugs as aliens. Everything works ok but the bug bitmap flickers on the screen. ...
0
votes
0answers
35 views

How should I go about handling nonuniformed sprite sheet with JSON data?

This might be a lenghty question so bare with me. I'm developing a 2D game i Monogame framework and I'm stuck with it comes to handle large sprite sheets with different frame width, height and ...
0
votes
0answers
152 views

Phaser 3: How to assign sprite to proper position

I have been building a game in Phaser 3. When I create a sprite using the Matter physics engine at a specific position, the sprite does not appear at the specified position. Depending on the ...
3
votes
2answers
165 views

Is it possible to apply a texture to a 2D-sprite in unity 2-d?

I want to take an (animated) 2-d sprite and apply a texture to it. Basically, I want every non-transparent pixel to be covered by the texture (color is disregarded). I understand I can probably ...
0
votes
1answer
61 views

Unity not redrawing sprite, after sprite change

I am making a game where the player mines dirt by walking on it: So, I created a scene and added a bunch of dirt to a grid, from a dirt prefab. When the character walks on a square, it is supposed to ...
0
votes
2answers
81 views

How to avoid the cutoff of a Sprite when overlapping in a terrain?

I have a scene where I have a terrain as a PlaneGeometry. And I'm trying to locate a building on it as Sprite. But I'm not able to put that building/sprite centered on the terrain without getting a ...
3
votes
1answer
95 views

Any tips for aligning existing sprite sheets to a grid?

I've been dabbling with sprites, and I've found most sprite sheets that have been posted for existing games (for example, Sonic & Knuckles) are not aligned to a grid. I've found this frustrating ...
0
votes
2answers
76 views

Unity prefab from multiple sprites

I am making a prefab of a simple building by combining sprites. As you can see in the Hierarchy view, this simple building is composed of very many gameobjects which I created via dragging sprites ...
0
votes
1answer
111 views

Sprite Management

I'm working on a game right now using my own engine. In the engine, I have a State Machine which handles input for, updates, and draws the current State - the one at the back of the vector. The game ...
1
vote
0answers
79 views

Playing an animation in Godot

I have been working on making a platformer in Godot but can't seem to get a walk cycle to play when I press left or right. ...
0
votes
0answers
88 views

Snake game with Sprites python

I've been trying to make a game of Snake (I'm a beginner/intermediate, so this is a way for me to try to get the basics of new things I learn), and I've been trying to do it with sprites. I would ...
0
votes
1answer
26 views

Sprite won't change with direction

I am making a top down Pacman game. I have two sprites: one for facing up and one for facing left. When I press W, the sprite showing is still the one for when Pacman is moving left, but I want to ...
1
vote
1answer
73 views

unity how to automate changing sprite editor setting

I have a bunch of hex tiles that I want to import into a tile palette. However their pivot point needs to be set to y 0.35 when the default is 0.5 I could edit the import settings in the sprite ...
1
vote
1answer
48 views

Why only few parts of the 2D sprite change their colour when I apply sprite color in Unity?

I'm making a stickman 2D game where I have different sprites for the player. But when I try to change the Sprite Renderer Color, it only changes few pixels of the sprite and the rest stays black as ...
1
vote
0answers
46 views

Modding sprites in New Super Mario Bros. DS

I'm a New Super Mario Bros. DS modder. My goal is to create a custom sprite over an existing unused sprite. I checked in on fellow modders and they said theoretically, I could copy another sprite's ...
1
vote
1answer
59 views

Does it make sense to export and use skeletal animation as sprites?

As tools like Dragonbones, Spine lets you export animations as both sprite atlas and skeleton data (JSON/binary), I'm not sure which format to use when importing to Unity. I have few concerns: Will ...
0
votes
2answers
137 views

2D character movement

My character moves right and left correctly, I want to know if it is possible to move character forward and backward to collect hearts (I know that in 2d no z axis I want to know if it is possible ...
0
votes
0answers
62 views

How to implement character sprite effects like in TowerFall?

In TowerFall, the character sprites seem to dynamical stretch and compress with player action. Should I do this at the sprite sheet level? Should the sprites do this, or is there a better way to do ...
0
votes
1answer
67 views

My character jumps, stops and if I try to jump it jumps!

There is this thing. I have Coded to check if my character is grounded. And it works fine. But problem is that I have added a code to jump. When my character jumps while checking my character is ...
0
votes
2answers
208 views

Pygame platformer - Making sprite jump

I am currently trying to make a Mario-type platformer using pygame and the MVC design pattern. My progress as of right now is getting a character on screen and having it move left and right. My goal ...
0
votes
1answer
118 views

Most efficient way to remove a Rectangle ? Monogame/XNA

I have a project in which I'm trying to remove the "collision box" (Rectangle class) of one of my enemy. My game logic basically is: ...
0
votes
1answer
134 views

Element's texture is null - Monogame/XNA, C#

I have a ArgumentNullException everytime I try to call the Draw() method of my Projectile class in the Game1.Draw() method. In Game1.cs Initialize() method: ...
0
votes
1answer
430 views

How to give individual tiles their own collider in Unity's tilemaps?

My floor tile is a 2D drawing of a 3D platform, for lack of a better description. I want my player character to stand not on the top of the tile but a little inside it, as the red circle does in the ...
1
vote
0answers
15 views

Is there a way to set a pallet for colours in an SVG image and change them at runtime for one gameobject?

in the latest beta build for unity they introduced the ability to import svg files. What I'd like to know is if there is a way to identify all svg shapes by colour, and then change those colours, as ...
0
votes
2answers
56 views

How manage multiple images in Unity?

I'm new in Unity and creating a game. So I have a class PicManager in which I have to load my images(sprites) from assets into a ...
2
votes
0answers
39 views

Sprites being skipped over in simple sprite change script

Each instance of the prefab in question has a copy of this script on it, but they seem to be interfering with each other in some way. I would forego prefabs, except the final game I'm prototyping for ...