Skip to main content

Questions tagged [spritesheet]

A collection of sprites that are loaded into memory as one image.

Filter by
Sorted by
Tagged with
0 votes
0 answers
34 views

Seperate Sword Sprite to Player

I am aware a common approach in game development for attack animations is to seperate the player from the weapon and 'stitch' them together in runtime depending on what weapon is equipped. This would ...
Silas Hayes-Williams's user avatar
1 vote
1 answer
115 views

How do I compose RPG character with different equipment?

I wonder which technique is used to render 2D RPG character with different armor pieces and weapons. E.g. character can equip different chest armors, gloves, boots and helmets. They also can equip ...
Steyrix's user avatar
  • 249
0 votes
1 answer
214 views

Sprite Animation in Pygame Zero

How do I use a sprite sheet in pygame zero? The height of the images are 32, width is 25
Tokyn Blast's user avatar
0 votes
0 answers
94 views

Ideas for how to attach meta data to an arbitrary sprite sheet?

I am currently messing around with monogame and creating some silly sprite based games. One issue I have is when I get sprites for OpenGameArt or any equivalent they are often in spritesheets in a ...
kiooikml's user avatar
  • 101
0 votes
0 answers
42 views

My sprite rects are flipped vertically in Unity Sprite Editor after being processed by code

I'm currently trying to process an Adobe Animate XML file with a Unity editor script, and I'm a lot of the way there, my parsing is complete, and I'm able to get some form of output, however the ...
Kane Mattsuki's user avatar
0 votes
0 answers
188 views

How do you load/store assets?

I'm new to C++ and SDL2 and for the past few days I've been trying to figure out what to do with/how to handle assets for my game. I'm using an asset pack that includes 4 characters and each character ...
Konjointed's user avatar
0 votes
0 answers
292 views

How to unpack a spritesheet

The sprites are not aligned to a grid, they are packed as tightly as possible to preserve space (1px spacing). I tried using Alferd SpriteSheet Unpacker but it didn't work on my image because the ...
Emily's user avatar
  • 21
0 votes
2 answers
280 views

Numbering sprites in a sprite sheet left-to-right, top-to-bottom

I'm using this program called Quadtastic which is a sprite sheet management tool that lets you define quads on a sprite sheet, name them, etc, and export to metadata with those names (+ position, size,...
Garflington's user avatar
  • 1,065
0 votes
1 answer
239 views

Invisible sprites with requestAnimationFrame

I'm trying to animate a sprite sheet. I have a single image, and multiple objects of the same type but drawn at different locations on the canvas. What I'm trying to do is have each object move with ...
kqvanity's user avatar
1 vote
1 answer
609 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 ...
J.Todd's user avatar
  • 465
2 votes
1 answer
647 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 ...
cs.edoardo's user avatar
0 votes
1 answer
815 views

How to animate sprite swapping with changeable equipment sprites?

I know that this 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 game object and parented ...
Diaskyyy's user avatar
1 vote
0 answers
180 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 ...
Stefan's user avatar
  • 107
1 vote
0 answers
209 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 ...
Gurkensalat's user avatar
-3 votes
2 answers
470 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 ...
user406126's user avatar
1 vote
0 answers
269 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 ...
vikAy's user avatar
  • 123
1 vote
0 answers
191 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 ...
imViki's user avatar
  • 11
1 vote
1 answer
199 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 ...
Naren's user avatar
  • 13
0 votes
0 answers
320 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 ...
Adam Arthur's user avatar
0 votes
1 answer
454 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: ...
LionCatDev Studio's user avatar
1 vote
0 answers
1k 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)
NickB's user avatar
  • 111
2 votes
1 answer
1k 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 ...
Programmer9000's user avatar
1 vote
1 answer
241 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....
arthuro555's user avatar
0 votes
0 answers
881 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 ...
Hrant Nurijanyan's user avatar
1 vote
0 answers
100 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, ...
sciencepi's user avatar
0 votes
0 answers
59 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 ...
Axel Carré's user avatar
1 vote
1 answer
843 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 ...
RhysGP15's user avatar
1 vote
2 answers
583 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 ...
Maxim Zabolotskikh's user avatar
0 votes
0 answers
107 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 ...
WeaponGod243's user avatar
1 vote
3 answers
6k 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 ...
new User's user avatar
3 votes
1 answer
705 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 ...
Garflington's user avatar
  • 1,065
0 votes
1 answer
252 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 ...
101010's user avatar
  • 209
0 votes
1 answer
1k 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 ...
Maifee Ul Asad's user avatar
0 votes
0 answers
44 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 ...
Jason Crosby's user avatar
2 votes
1 answer
219 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 ...
tirri's user avatar
  • 31
0 votes
0 answers
346 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 ...
Bojje's user avatar
  • 183
4 votes
1 answer
3k 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 ...
Phil Downey's user avatar
0 votes
1 answer
360 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 ...
Kino Bacaltos's user avatar
1 vote
0 answers
65 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 ...
James's user avatar
  • 111
1 vote
1 answer
1k 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 ...
Yaniv Shaked's user avatar
0 votes
1 answer
596 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.
ishidex2's user avatar
  • 113
0 votes
1 answer
103 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 ...
atanii's user avatar
  • 137
0 votes
0 answers
546 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....
hqt's user avatar
  • 309
1 vote
1 answer
52 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 ...
Limpuls's user avatar
  • 189
0 votes
2 answers
851 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, ...
Majiick's user avatar
  • 113
0 votes
1 answer
436 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 ...
Joza100's user avatar
  • 259
3 votes
1 answer
557 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 ...
Olivier Pons's user avatar
0 votes
2 answers
860 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 ...
Mathew O'Dwyer's user avatar
4 votes
3 answers
12k 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 ...
Code's user avatar
  • 41
0 votes
1 answer
1k 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 ...
retrovius's user avatar
  • 117

1
2 3 4 5