[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y ] [Home]
4chanarchives logo
So Im making a sprite sheet of a bunch of different interchangeable
Images are sometimes not shown due to bandwidth/network limitations. Refreshing the page usually helps.

You are currently reading a thread in /gd/ - Graphic Design

Thread replies: 8
Thread images: 1
File: guun.png (1 KB, 190x69) Image search: [Google]
guun.png
1 KB, 190x69
So Im making a sprite sheet of a bunch of different interchangeable gun parts for a game. I drew up each cell on seperate layers and saved it as a .pdn, I went into infranview and exported the layers as seperate equal sized files as .png. Now I want to arrange all the fiiles into a grid. Is there any tool I can use to avoid placing each file manually? Like just import 30 files of equal size and have them automatically form a grid?
>>
bump 1/1
>>
>>270904
What game engine?
>>
>>270909
Unity. My buddy is handling unity tho, he just asked for all the pics in a grid cus its easier on his end (and mine too honestly)
>>
>>270910
Then you won't want a grid, unless every single piece is the same size (which I'm guessing not).

I would recommend putting the parts into different sprite sheets, one for grips, bodies, barrels, ect.

Put all of one type of part in a vertical column with the left side flush. It may seem weird, but it makes it easier when sorting it all later. If you have gun matching sets, put them in the same order on the sheet going down (so say a shotgun is barrel_04, grip_04, stock_04, ect).

Make sure you leave at least 2-5 pixels of vertical spacing between the parts to avoid problems with seeing the separation.

As long as you don't get a PNG with a height of >4096 you won't lose any qualittle; though I don't think you would anyway.

Then once you are ready, take it into Unity, set to sprite, multiple sprites, the. automatic slicing should take care of the rest.

You will need to fuck with the pivot points to get them all to be positioned together right (anyway you go about it you will need to it) but with that it should be easy enough to set up a for-loop to spawn your gun parts under a parent.

Let me know if you have any other issues, will check back tomorrow around lunch.

>my college degree getting used for once
>>
>>270916
They're different sizes, but they are all positioned in images of the same size with transparent backgrounds, all pre-aligned. So my buddy can just draw each image directly on top of each other and all the parts are already alligned.
>>
>>270997
How do you plan on doing recoil like that?
>>
>>271006
Bloom. The game is 2d, bulletspread increases with continuous fire

Anyway I figured it out. Theres a script for photoshop that does exactly this. Sprite sheet generator.
Thread replies: 8
Thread images: 1

banner
banner
[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y] [Home]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
If a post contains personal/copyrighted/illegal content you can contact me at [email protected] with that post and thread number and it will be removed as soon as possible.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com, send takedown notices to them.
This is a 4chan archive - all of the content originated from them. If you need IP information for a Poster - you need to contact them. This website shows only archived content.