Stack Exchange Network

Stack Exchange network consists of 174 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
1answer
30 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
16 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
30 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
91 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
26 views

How can I get rid of in-game Aliasing?

I am creating a 2D game in Unity. The sprites in my game appear to have their pixels only allowed to be in set positions of the screen, making the textures sort of aliased to a low degree that causes ...
0
votes
0answers
26 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
0answers
13 views

Shoebox Image Splitting > Texture Atlas Creation

Let me give the backdrop to my question. I am new to game development but not to JavaScript. I am learning Phaser3 at the moment. I'm thinking about drawing my own character animations. It seems ...
0
votes
1answer
42 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
1answer
48 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
67 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
41 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
0answers
24 views

Render a basic image to screen SharpDX?

I am working with SharpDX (DirectX11) and I'm refactoring some old code. I'm having a hard time finding tutorials on this and need to render a basic image to a ...
0
votes
1answer
41 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
14 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
46 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
37 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 ...
0
votes
1answer
39 views

Are all referenced sprites loaded into memory for each object?

I'm trying to understand how Unity works behind the scenes. Let's say I have a GameObject that has a large number of sprites attached to it in an array (think a deck of cards). Each GameObject ...
0
votes
0answers
21 views

Danganronpa Fangame Artists [duplicate]

Where can I find a Sprite Sketch Artist, a Sprite Line Artist, a Sprite Colorist, a Promo Artist, a logo designer, and a Pixel Artist that will be willing to help me out with my Danganronpa Fangame ...
0
votes
0answers
71 views

How to play a material's shader in an image? (Unity 5.2.0f3)

I would like to obtain the same effect as in Seasons After Fall in Unity 5.2.0f3 for a 2D project: https://i.stack.imgur.com/WCIhs.gif Here the trailer, https://www.youtube.com/watch?v=cmAWybFKNh8 ...
0
votes
1answer
122 views

How to split sprites into multiple pieces, like in image below

Or how it should be called? I will change color programmatically. Sorry for my English.
0
votes
2answers
69 views

Why is my spritesheet displaying all messed up in game?

I'm having an issue I don't quite understand, where my spritesheet is looping strangely and not showing the full sprite I want, even though I feel like I'm specifying it correctly. My code is in ...
0
votes
1answer
52 views

Sprite/Object/Room limits in GameMaker 8.1?

I know about GameMaker Studio’s limitations for sprites, objects, rooms, and other assets (https://help.yoyogames.com/hc/en-us/articles/230407528-GameMaker-Studio-2-Trial-Limitations), but I can’t ...
0
votes
1answer
81 views

BUG in sprite GameMaker

In the game you have an object called obj_Corpo, and your image is a 3x3 square. I use it by stretching it horizontally or vertically for 10 or 20 times. Here's an example: Acontece que no jogo ele ...
0
votes
0answers
47 views
3
votes
1answer
70 views

Render moveable entities into 3D isometric world?

I have a separate list of moveable entities, and then the regular 3D map, represented by a 2D array of stacks of tiles. My problem is that right now, I'm rendering my moveable entities after the map, ...
0
votes
0answers
24 views

How to separate sprites to different files from a single sprite sheet?

I have this sprite sheet and its metadata file. I open the project in Unity Editor and open the file in Sprite Editor. Unity shows the borders of different sprites in the sprite sheet. However, I ...
0
votes
1answer
36 views

Multiple image objects extracted from spritesheets or one-two object for all?

Let's say I want to make a 2D game and I'll use a spritesheet containing all of the animation frames and a texture-atlas for static sprites such as walls, non-animated decorations...etc. Should I ...
1
vote
1answer
186 views

Unity tilemap spacing between imported sprites

What am I missing here? Is Unity's tilemap limited to size 32x32? I am trying to understand why my sprites in my Unity tilemap are spaced apart from one another such that if I paint them into the ...
2
votes
1answer
125 views

Screen blending from Photoshop in Unity 2D

I want to use "Screen blending" from Photoshop in my Unity 2D game, I want to use that for exported lights from 3D Max that we want to use in our game, Now for a sample, I have my sprite that I want ...
10
votes
1answer
1k views

Confusion about Sprite Size in World Space (Unity)

I have a Sprite with 1080x1920 resolution. And I set the Game View Resolution also to 1080x1920. What I was thinking is that the sprite (1080x1920) should fit correctly within the Camera View. But ...
0
votes
0answers
42 views

Easy sprite-based 2D game in LWJGL3?

Earlier we have used libGDX, and in it, creating a sprite object was really simple, like: ...
0
votes
1answer
45 views

Does destroying body also destroys the sprite?

Suppose a sprite is attached to a box2d body. And world.destroyBody(b); is getting called then the sprite also get destroyed or it stays there in memory. In my ...
2
votes
1answer
107 views

Unity : Changing color of 2D sprite distorts sprite shape [closed]

In my 2D game, my circle shape for example, appears round, but when I change the color then it turns into a low poly circle with 8-16 points, more like a potato. Is there any way around this? ...
1
vote
1answer
37 views

Can't Get .enabled to Work for Children Sprites. What Gives?

So I have an object with a few children. I want to be able to disable/enable 2 of their SpriteRenderers via one of my scripts. I feel like I'm doing things right, but apparently I'm not. And yes, my ...
3
votes
2answers
101 views

What are the benefits or drawbacks of splitting the player animation system from the wall collision system into multiple objects pinned to each other?

I'm currently making a simple platformer in GameMaker Studio 2 and I've had people telling me that I need to separate the two things into an invisible wall collider mover and animation sprites pinned ...
0
votes
1answer
23 views

Unity2D: Sprite Mesh Lighting Issue

I am trying to make my 2D mesh render sprites with the same brightness as the original file. On the below picture, the mesh on the left is darker than the UI Image on the right, which is an exact ...
0
votes
0answers
41 views

How can you change the sprite of the player-character depending on their health?

Is there a way to make it so that when your character gets hit by an enemy, the sprite of the character changes depending on how many hits it takes? The idea is that the character starts out with ...
0
votes
1answer
94 views

Need help understanding ms to fps for a Unity animation

I'm trying to create an animation in Unity (2018.1.1f1) and can't understand how to proceed. I have a 3 sprites which I need to order like so : 1 2 3 2 (then repeat). The first and third sprites ...
1
vote
1answer
54 views

Sorting sprites based on Z index

I am working on a 2D game engine in C# using OpenGL. I am trying to find a collection to satisfy my needs for sprite ordering, and I can't seem to find the combination of performance and functionality....
0
votes
2answers
65 views

Loading sprite resources from nested folders

This is how I try to load my sprite images: ...
0
votes
0answers
161 views

How to detect sprite overlap in Godot?

I am trying to check for pixel-perfect overlap between my player sprite and my enemy sprite. Because this kind of thing is computationally expensive, I only plan to do it if the bounding boxes of the ...
0
votes
0answers
38 views

Is it possible to pass a stick inside a ring in unity 2D

I want to pass a stick sprite inside a ring sprite but I don't know how to do it. Should I add two colliders to the ring ? (one is trigger other isn't) I want to make the ring can hit other objects ...
0
votes
0answers
68 views

Optimal way to create/spawn multiple sprites in mini2dx(subset of libgdx)

What is optimal way to spawn new sprites with different sizes in mini2dx(subset of libgdx)? Currently I am maintaining ArrayList of enemy sprites ...
0
votes
0answers
17 views

Syncing animations across different objects

In my game I have the player object which is made up of separate objects to allow for part swapping. Each general part has it's own animator and the overal object has an animator. Let me explain, the ...
1
vote
1answer
27 views

How can I have more values in array on X axis than Y axis in my tilemap?

Following my old question Array of map data renders the map the opposite way after I got the answer to it and fixed my problem, I got another problem that occurs. If my ...
0
votes
0answers
85 views

Custom sprites for NeonShader - Unity

I'm currently working on a simple game and want to add neoncoloured sprites to the environment. For this purpose I searched for similar effects and found this. I tried using the shader and could get ...
0
votes
0answers
29 views

How to know a sprite position inside a view, relative to window?

I have this sprite of a car that moves with varied speed. It is inside a view and the view is moved to the left to keep the car always in the center of the window. The view accompanies the ...
0
votes
1answer
109 views

SpriteRenderer batching issue, with Z-Position and Order in Layer

I have two sprites (they look the same but with different colors): I want them to be positioned like on the image above, so there's a feel like blue is standing on the green one. There are two ways ...
0
votes
0answers
90 views

How to do proper collision detection on a tilemap array?

I want to implement a simple collision detection so that when my character hits one of the objects it can't move any further. I have seen some tutorials on collision but the thing is that they are ...
0
votes
1answer
285 views

Why doesn't my SpriteRenderer's color change when setting .color = new Color(166, 33, 33)?

I need to change the color of my SpriteRenderer, and so I looked up how to do it and come up with this code: ...