Questions tagged [sprites]

A 2D rendering of an object in space. Sprites are two-dimensional bitmaps that represent objects or entities in a game and populate larger scenes.

Filter by
Sorted by
Tagged with
0 votes
1 answer
8 views

How to Force Refresh Texture2D/Sprite when Programmically Modified using Editor Script?

Here is some code called using a custom button in the component inspector: ...
user avatar
2 votes
1 answer
72 views

How to animate a 2D top-down fish?

Recently I've been trying to create a controllable fish character. The game is 2D and top-down. My two approaches are: Skeletal Animation, which is versatile but looks too robotic. For example, no ...
user avatar
2 votes
2 answers
45 views

Animating a line around an image for Unity app

I would like to animate a line around an image, starting from the top right going clockwise around the image and then show the check mark. The animation should be possibel to stop and restart. There ...
user avatar
  • 153
0 votes
0 answers
22 views

I am trying to make a multiplayer game, and my 2d sprite shows up when I click play normally, but not when I press build and run?

When I press the play button at the top of the screen, I can see my sprite, but not when I press build and run. Why is this? (enter image description here
user avatar
  • 1
0 votes
1 answer
131 views

Trying to get sprite from isometric "z as y" tilemap

I'm using code like the following with a tilemap and tilemap collider 2d: var ray = Physics2D.RaycastAll(worldCoordinate, Vector2.zero); Unfortunately, when I ...
user avatar
0 votes
1 answer
77 views

Simulating sprite shadows for a 2D top-down game

I have read some other posts with almost identical titles on here, but they are not exactly what I am looking for. (What I have seen come up a lot in 2D shadows is some sort of "ray-cast effect&...
user avatar
  • 21
0 votes
2 answers
50 views

Draw 2D circles/squares efficiently with Unity

I'm doing a lot of 2D simulations using Unity, and I usually instantiate a lot of squares/circles sprite. When the number of sprites reaches 1k or higher, the FPS usually reduces to 10-20, which makes ...
user avatar
  • 117
0 votes
2 answers
57 views

How do I make several Image components transparent collectively as one sprite with a CanvasGroup?

I've run into a problem where using the CanvasGroup component to fade in/out several Image components under a hierarchy produces an unwanted result, where each individual sprite that overlaps with ...
user avatar
0 votes
1 answer
42 views

Changing part of a sprite in 2D game

Let's say I have a character and certain things (shoes, vest, hat, etc.) can be changed (visually, just the color changes). What came to my mind was creating each of them as a separate sprite and then ...
user avatar
  • 639
2 votes
1 answer
59 views

How are map/room/world-related game assets usually organised and implemented?

I'm trying to build a simple 2D Shoot 'Em Up type of game in C++ using SDL2 and an Entity Component System, which I've already implemented. The idea is to have different maps/rooms where you have to ...
user avatar
2 votes
0 answers
43 views

Unity 2D Sprite Cutout with border

I'm working on a 2D simulation game and have one object floating on top of another one. I have a Sprite Mask on the object on top to achieve cutout like effect so the background is visible where the ...
user avatar
0 votes
1 answer
33 views

weird blurring of tiles in unity2d tilemap

My tiles don't have any anti-aliasing because I am going for a pixelated look. But when I add my tiles to a tile map it automatically puts anti-aliasing on them. My tiles look like this: when they ...
user avatar
5 votes
2 answers
1k views

RPG - How to deal with the collision of a sprite with a side-view thinner than its front-view?

I am currently working on a role-playing video game featuring sprites that take the form of antropomorphic objects. These sprites can move around in the four cardinal directions, and turn to face the ...
user avatar
  • 53
0 votes
0 answers
22 views

How to make a png or Paper 2D blueprint character move 3 dimensionally from location to location?

I have already turned the png files into blueprint class Paper 2D sprite thingies, but when I make it do an AI move blueprint it won't follow any of it and will stay still no matter what. I also ...
user avatar
0 votes
0 answers
13 views

simple button color change

Hello i want to create a simple button that activates on a click but my code wont activate and I've tried an print plus a color change of the sprite but none of these worked, the button is a image ...
user avatar
0 votes
1 answer
116 views

How to rotate parent and all children by center pivot?

I have a DoorSprite with an Animator component which I animate by rotating it by 90 degrees (makes the door look like opening ...
user avatar
0 votes
0 answers
62 views

LibGDX sprite not moving with rotation

I have a player class and I'm trying to rotate the player and move it in the direction it's facing. The rotation works but I can't get the sprite to move. ...
user avatar
0 votes
1 answer
40 views

BoxCollider2D used as reference to Collide with GameObjects but it uses the original size Sprites size to Collide

I'm a beginner in Unity and pretty much copy and pasted the code but I can't figure out why the game is using the size of the sprite and not my BoxCollider2D as a ...
user avatar
0 votes
0 answers
57 views

Unity sprite takes 5 times more memory in profiler

So as stated I have a sprite that when compressed takes 2 MB. But when I look into the memory in the profiler, it says that the sprite uses 10 MB! This happens both when I profile in the unity editor ...
user avatar
0 votes
0 answers
8 views

Adobe Animate Visible Masks & Layers for Character Mouth/Teeth Movement

I'm working on animating a characters mouth opening and closing. The layers for this character are currently ordered:Body < Mouth < Teeth. When I animate the ...
user avatar
  • 103
0 votes
1 answer
272 views

How to change size of a SINGLE tile on a tilemap at runtime?

I'm having trouble figuring out how to change the scale (size) of a single sprite (tile) on a Unity Tilemap. In the game, I place trees as tiles on a tilemap, and when they grow over time, I want to ...
user avatar
0 votes
1 answer
67 views

Choosing Number of Points and PPI Resolution To Future-Proof Game Images

I'm working on an iOS SpriteKit game and I'm currently designing some images to be used as character animations in Photoshop. There are many different iPhones with various screen sizes and resolutions,...
user avatar
  • 103
1 vote
0 answers
25 views

Two neighbouring wall sprites have visible connecting egdes (generated in Blender)

I use Blender to model walls. I render 2d sprites of these walls in a (gaming) isometric perspective. My problem pertains to the "edges" of the 3d wall: On both left and right ends of the ...
user avatar
-1 votes
1 answer
85 views

Create list of objects with a for loop pygame/python

Hi everyone I am trying to make a Mahjong Solitaire game using pygame. I want to create a list of objects (the tiles of the game) using a for loop, but I can't manage to set a different type (the ...
user avatar
0 votes
0 answers
35 views

Filling out letters from TMPro in Unity

I got this Japanese font called RampartOne-Regular and created several Font Assets for TMPro to use and so far it is running smoothly. The problem with this font in particular is that the fill of the ...
user avatar
1 vote
1 answer
130 views

How to create endless background in a 2d top down game?

I have a seamless background sprite, and I do not want the player to be able to reach the edge of the background. Setting huge width and height in tiled drawmode doesn't sounds like a solution. How ...
user avatar
0 votes
0 answers
75 views

match-3 Board border

I'm new to unity and I'm currently working on a match-3 game. I know there are a lot of similar games and that's why I would like to know what is the best way to autogenerate border of a match-3 board ...
user avatar
  • 1
0 votes
1 answer
153 views

Creating a background image with Photoshop for Unity

I'm making a home screen for my game. I don't know how to transfer a 2d image from Photoshop into a game that's on Unity. How do I import the image and make it visible in game? It’s a 3D game. I don't ...
user avatar
-1 votes
1 answer
76 views

How to make environment art like the building interiors in Digimon World 3 [closed]

I'm wondering how to create art like this (the map, not the characters), is this 2D or 3D?
user avatar
0 votes
0 answers
21 views

how can I recreate the transitions in Xybots when the character turns or moves?

Xybots is a pseudo FPS game akin to Dungeon Master on the Amiga. Instead of smooth movement in any direction in a game like Doom, your player is on a grid and can move only in four directions, and can ...
user avatar
  • 101
1 vote
1 answer
418 views

How can I bake 2D sprites in Godot at runtime?

I would like to use the technique described here to create a player sprite with unlimited clothing and equipment options (like in Stardew Valley). To elaborate: I want to have a sprite sheet for the ...
user avatar
0 votes
1 answer
15 views

Which are the corresponding parameters for rect and pivot in exporting an editor defined sprite, to be re-created using Sprite.Create?

Which are the corresponding parameters for rect and pivot in exporting an editor defined sprite, to be re-created using Sprite.Create? I've tried both .rect and .textureRect for storing the editor ...
user avatar
  • 174
0 votes
0 answers
38 views

Layer sprites according to their vertical position

I need advanced blitting options in my game. It's a 2D game that has trees' sprites along with the player's sprite. I want that every tree sprite to be displayed either in front of or behind the ...
user avatar
  • 216
0 votes
1 answer
86 views

How to keep objects in the same position relative to their parent?

I'm writing a simple game in C# and i'm having some difficulty to calculate the local position of a sprite. What i'm aiming to achieve: Calculate the sprite "local position" relative to the ...
user avatar
  • 51
0 votes
1 answer
203 views

Unity 2d Sprite Swap Help

i know that that's is a very old unity issue. I'm doing a 2d pixel art rpg and i want to sprite swap whenever the player gets an armor (helmet,vest,boots...). I created an empty gameobject and childed ...
user avatar
0 votes
1 answer
91 views

SpriteAtlas's sprites not initialized in ScriptableObject?

I am trying to implement a simple abstraction over SpriteAtlas where I can simply request texture coordinates for a certain ...
user avatar
  • 149
0 votes
0 answers
73 views

How to make under-construction sprites have blueprint graphics?

In my game, every placeable object and structure will only be placed as a blueprint, which the characters will then automatically build. An example from "RimWorld": Objects placed as ...
user avatar
0 votes
0 answers
42 views

How many Sprite Atlases should be used?

I am using Sprite Atlases in my game to fix a bug with gaps between tiles as a result of oversampling, and I started wondering how the atlases should be used. What I'm asking here is whether I should ...
user avatar
1 vote
0 answers
92 views

2D Armor/Weapon System (Paperdolling)

I´m currently working on a 2D RPG where you should be able to compose your character from diffrent armor/weapon parts. For example the character can wear a "wooden helmet" and a "chain ...
user avatar
0 votes
1 answer
55 views

Sprite transparency fails when rendered through shader

I am currently trying to implement a shader to a sprite of mine, but the transparency is completely removed when the texture goes through a Sample Texture 2D node. The sprite under the Sample Texture ...
user avatar
1 vote
1 answer
53 views

Making Sprite Movement Appear More Natural

Currently I have a 2D game in which the player and a computer controlled (non-player) sprite move from point to point collecting tokens in a continuous environment. The player and the non-player ...
user avatar
  • 111
1 vote
1 answer
128 views

Editing Pixel Art, Copyright and "The Ship of Theseus" Problem

(Please read the entire question before you crucify me :p) This is a question that has been on my mind for some time. Basically, How much of a sprite needs to be changed in order for you to claim &...
user avatar
0 votes
1 answer
32 views

text - part of the sprite or dynamically generated

I am trying to reproduce the same stamping tool as the one we found in the video game "Papers, Please". In my case I want my users to be able to modify the text they are going to stamp. I ...
user avatar
  • 3
0 votes
0 answers
19 views

Sprite sorting is working fine but tilemap sorting is working the opposite way I want it to [duplicate]

I provided some screenshots to display what I'm talking about. The blue tile is a sprite, and the bushes are made from tilemap, each being 4 16x16 tiles. My transparency sort axis is set to 0,1,0. I'...
user avatar
4 votes
1 answer
957 views

Invert the colour of pixels where 1 bit sprites are overlapping

I have a simple scene in Unity that makes use of some simple art that uses either white or transparent colours to create a 1-bit art design. The image below shows this. I want to have a that if two ...
user avatar
  • 143
0 votes
0 answers
23 views

how would i make a sprite go in front and behind a 2d wall? [duplicate]

I've tried a few solutions but none seem to work. first, I tried adding half of that same sprite onto the original and then making the layer higher, which would work, except my original sprite can ...
user avatar
  • 15
0 votes
0 answers
41 views

Turning a flashlight on/off via SetActive

I don't know if this matters, but I'm using Unity 2D. The code only turns the flashlight off, but not back on. ...
user avatar
  • 15
0 votes
1 answer
254 views

Identify when Unity Button Enters Pressed State

I am trying to create a UI Button Prefab with a text child element that I would like to use all over my application. Its intended behavior is very simple: Its size would be dependent on the text's ...
user avatar
1 vote
0 answers
63 views

How to properly delete unwanted models

I am implementing bullets into my game, and each bullet has a lifetime. Whenever the bullet has existed for a set amount of time or collides with an object, the bullet should be deleted. I implemented ...
user avatar
1 vote
0 answers
70 views

Parsing Sprites from Spritesheet

How can I parse a spritesheet consisting of scattered sprites with different sizes, like this example and return the (x, y) and ...
user avatar
  • 23

1
2 3 4 5
22