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.

0
votes
0answers
21 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 ...
0
votes
1answer
65 views
+50

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
33 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
69 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
42 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
48 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
76 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
45 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
44 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
25 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
23 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
36 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
34 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
37 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
122 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
37 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
55 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
101 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
83 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
65 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
166 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
49 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
54 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
31 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
1answer
176 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
86 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
87 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
136 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 ...
3
votes
1answer
88 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
27 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
292 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
232 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
2k 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
1answer
61 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
152 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
134 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
1answer
147 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
65 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
123 views

Loading sprite resources from nested folders

This is how I try to load my sprite images: ...
0
votes
0answers
221 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
89 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
20 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
112 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
39 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 ...