Questions tagged [spritesheet]
A collection of sprites that are loaded into memory as one image.
220
questions
1
vote
1
answer
68
views
How should I go about generating a spritesheet JSON file for an existing PNG containing a grid of assets?
To get started with game development I purchased some top-down sprite assets which come arranged in a grid, but to use them with a typical 2D rendering engine (I'm using Pixi.JS), I need a JSON file ...
2
votes
1
answer
573
views
Spritesheet with unstable width
I'm working on my 2d game engine using HTML5 and Canvas. I have a sprite sheet, and each frame of this sprite sheet has its own size.
Considering that the Viewport is following this sprite sheet (in ...
0
votes
1
answer
169
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 ...
1
vote
0
answers
72
views
Turnaround animation
So I have a Moose with 3 animations: idle, walk, turnaround.
Idle and walk are mostly self explanatory while the spritesheet for the turnaround animation looks like this:
I set an animator with 3 ...
1
vote
0
answers
86
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 ...
-3
votes
2
answers
144
views
Better use background chromas or transparency?
For png 2D sprites, its better use chromas or alpha channel?
What is more performant during run-time processing?
What uses less storage?
Any difference between ...
1
vote
0
answers
64
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 ...
1
vote
0
answers
79
views
How to use HD and SD sprites in Unity addressables
I am able to load sprites using Unity addressables. But how can I use SD or HD variants of a sprite based on my device resolution?
Previously I was using LIBGDX, and it has ...
1
vote
1
answer
54
views
Efficient sprite animation display methods?
I'm making a game sprite, with animations for transitioning to different states, such as idle, sleeping, etc. I'm wondering what the most efficient way to play the animations is. As of now, I have a ...
0
votes
0
answers
93
views
Data structure backing tile-based map?
I'm building a tile-based game with a similar art style as Stardew Valley, but have a few questions around technique. My understanding is that it's best to store the maps as a byte array of tile ids ...
0
votes
1
answer
250
views
Animating from json file in pygame?
I have got a json file and I am trying to load the single sprites from that file
but I gives this error after a few loops and also the animation is not smooth(gets stuck)
error:
...
0
votes
0
answers
502
views
How can I generate a TileSet from an existing image of a level?
Let say I have this level from Zelda: ALTTP.
I know that each tiles are 16x16. How can I generate a tileset and map from part of the original image?
(Image source)
1
vote
1
answer
876
views
How does Unity pick which sprite atlas to load?
I plan to use sprite atlases for my 2D game. All my animation is sprite animation so I'm going to use sprite atlases for my characters' sprites.
My question is, if I put the same sprite in two ...
1
vote
1
answer
165
views
Are spritesheets worth it? Is a zip a good alternative?
I was wondering if spritesheets are worth it.
I am making a game with pixi.js and was thinking about optimization, beginning with asset loading. I currently have an arraya of all files and use PIXI....
0
votes
0
answers
393
views
Slot machine game Phaser 3
I need an advice on creating a slot machine phaser game.
So it looks like this
I need to plan an approach to do the animation of the reels of the slot machine. I have idea of using tileSprite, are ...
1
vote
0
answers
56
views
Drawing sprites to the screen in 65816 Assembly
I am trying to create a SNES game in assembly on the WLA-65816 assembler. However, I can't quite figure out how to draw sprites to the screen or figure out what software to use. At the minute, ...
0
votes
0
answers
34
views
Is using sprite sheets and drawing specific part the way to go?
I'm programming in Java.
I have more than 200 MB of images used in my games, something like 100000 40x40ish images. I initially wanted to load them all during app initialization but it took like 2 ...
1
vote
1
answer
316
views
How can I capture only a part of my sprite sheet in my game for Java?
I have a University Project to create a simple game in Java. To challenge myself am trying to utilise sprite sheets. My issue is that the whole Sprite sheet is being shown rather than the section that ...
1
vote
2
answers
377
views
Creating palette from irregular sprites in Unity
I want to create a palette based on a number of PNGs in Unity 2D. I am struggling to understand the slicing logic. Let's say I have a sprite 588x547, and I set PPU to 128. So obviously the sprite ...
0
votes
0
answers
74
views
Spritesheet Usage
I am working on an RPG game and I am storing most of my textures in separate .png files, but for my sprites I would like to use a sprite sheet. How do you cut and store the sheet into individual ...
0
votes
3
answers
3k
views
Slicing irregular spritesheet (automatically?)
If found a cool sprite sheet on the internet but its irregular.
Is there any way besides manually cutting sprites to extract the separate pngs?
I need to pack them then again into the Texture Atlas ...
3
votes
1
answer
411
views
Making my characters modular
I'm making a school-based sandbox adventure game in Unity. I need a lot of NPCs with different apperances. I dreaded this since I don't have fun doing art and it is usually the reason I end up ...
0
votes
1
answer
163
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
1
answer
726
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 ...
0
votes
0
answers
36
views
Placing tile on second layer results in wrong tile, or changes nearby tiles
So I am working on a 2d game and running into strange behavior when trying to add tiles to a tile map.
The first layer seems to work fine but if I add a new layer it will always place the same tile ...
2
votes
1
answer
113
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
0
answers
231
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 ...
4
votes
1
answer
1k
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
1
answer
229
views
unity emission map bleeds (bug?)
I have a material with a spritesheet texture (albedo) and an emission map.
The spritesheet has 32x32 squares. The emission has a 32x32 square that is an emission for the magma-looking square.
It ...
1
vote
0
answers
52
views
What are efficient strategies to support alternate spritesheets in Unity
Context
Let's suppose a classic card game, designed in Unity (say the latest release as of now, so 2018.2.16). Visible cards are GameObjects with ...
1
vote
1
answer
890
views
Unity - SpriteAtlas memory consumption
I'm in the process of optimizing my application memory consumption.
To do so, I'm using Unity profiler while connecting to an Android device, which runs a development build of the application.
The ...
0
votes
1
answer
419
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
1
answer
76
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 ...
0
votes
0
answers
394
views
Spine: export both skeleton and spritesheet
I am follow this tutorial for animation using spine. In this tutorial, they are import components separately (i.e: head, body, hands, legs ...). After I finish animation part, I want to export to json....
1
vote
1
answer
37
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
2
answers
551
views
Parts of sprite disappear when zoomed out
I'm playing around with making a roguelike and I want to use ascii characters as tiles in the game. I'm using a 256x256 sprite map where each character ends up being a 32x32 box.
This works fine, ...
0
votes
1
answer
319
views
How to make my SpriteSheet be POT?
So let's say my sprite sheet has 3 sprites in one row. One sprite is 64 pixels wide and high. When that is combined my sheet would be 192 pixels wide and 64 high. So from that, how am I supposed to ...
3
votes
1
answer
272
views
What are the legal considerations with using spritesheets? [duplicate]
If you google for sprites sheets, you'll find a lot of sprites sheets.
As far as I can remember, industrial patents (the terms may not be the right ones I'm sorry), after 20 years, fall into public ...
0
votes
2
answers
497
views
How to access sprite sheet via row and column
I'm currently designing a 2D game engine in C#, just had a quick question.
I have a SpriteSheet class that splits up a sprite into several different sprites (like ...
4
votes
3
answers
8k
views
Is there an easier way to get sprites from a spritesheet
One issue I have when working with API's such as Monogame and SFML unlike with Game Engines like Unity and Unreal is trying to extract sprites from a spritesheet. I know the method of doing it but it ...
0
votes
1
answer
978
views
Don't know what to do with XML file and Spritesheet (Swift 3)
I'm new to spritesheets and game development in general. I have two files:
1) a .png spritesheet with tons of sprites and
2) a companion XML file with coordinates, anchor points, image names, and ...
1
vote
1
answer
1k
views
One big spritesheet vs many smaller spritesheets?
I have my 2D character animations which are stored in spritesheets. I have individual sprite sheet for every animation. For example, if my character have animations for idle, run and jump, I have 3 ...
1
vote
1
answer
1k
views
Cannot use sprite sheet to add texture to RawImage?
I am basically trying to recreate this sample image
from this sprite sheet
(Source)
I split the sprite sheet in the sprite editor of unity, now I want to use the top left texture for ground. But ...
0
votes
1
answer
803
views
Unity fails to effectively split spritesheet
I'm very new to game development and I find it very difficult to split the spritesheets available at opengameart.org. All of them are kind of jumbled together without any fixed grid.
The resource I ...
0
votes
2
answers
608
views
Unity performance: change sprite from array or sprite sheet animation?
Quite some time ago I made a "GIF player" that basically reads a sprite array and swaps the sprite using a Coroutine, one after the other, in order to imitate a "...
0
votes
0
answers
180
views
Use texture array for spritesheets?
To save texture bind there is the technique to use a sprite sheet which combines several sprites into one texture. Now if I have more sprites than which will fit into one sprite sheet (limited by ...
1
vote
0
answers
632
views
How to flip sprites with different dimensions horizontally?
I am trying to make an animation on HTML5 Canvas with this texture atlas, which was packed by TexturePacker:
and it works good when the Character is facing right. I try to flip it horizontally, but ...
2
votes
0
answers
150
views
Splitting a sprite sheet into sprites
Each animation has its own sprite sheet. First I tried to give each sprite their own rectangle and do some calculations to make sure that the bottom left corner of each sprite would be at the same ...
0
votes
1
answer
529
views
SFML Sprite not being rendered when returned from a method
I am trying to use spritesheets in SFML. My Player class inherits from the Creature class which inherits from the Entity class. I only see a white square when I render the player. However, this is not ...
-1
votes
1
answer
186
views
Why is my SpriteSheet displayed over my player character in MonoGame?
I'm trying to make a little Zelda clone.
I'm just starting with MonoGame, following tutorials, and I have a problem when loading the sprite for my player character: it loads the whole spritesheet ...