Skip to main content

User login

What is OpenID?
  • Log in using OpenID
  • Cancel OpenID login
  • Create new account
  • Request new password
Register
  • Home
  • Browse
    • 2D Art
    • 3D Art
    • Concept Art
    • Textures
    • Music
    • Sound Effects
    • Documents
    • Featured Tutorials
  • Submit Art
  • Collect
    • My Collections
    • Art Collections
  • Forums
  • FAQ
  • Leaderboards
    • All Time
      • Total Points
      • Comments
      • Favorites (All)
      • Favorites (2D)
      • Favorites (3D)
      • Favorites (Concept Art)
      • Favorites (Music)
      • Favorites (Sound)
      • Favorites (Textures)
    • Weekly
      • Total Points
      • Comments
      • Favorites (All)
      • Favorites (2D)
      • Favorites (3D)
      • Favorites (Concept Art)
      • Favorites (Music)
      • Favorites (Sound)
      • Favorites (Textures)
  • ❤ Donate
Resource Requests

Need LPC Spritesheet splitter for project!

UrieW
Thursday, June 26, 2014 - 17:42

Hi, you might know me by my submissions in OGA, and I was willing to ask if there is an image splitter for the Universal LPC Spritesheet that can cut a sheet into big chunks containing all of the direction animations of an LPC sprite's state. Is there such a thing existing?

  • Log in or register to post comments
Buch
joined 14 years 9 months ago
Friday, June 27, 2014 - 04:42
Buch's picture

You can achieve such task (and many others as well) using ImageMagick. It's a fairly complex command-line utility, but you should be able to find a pre-made command that does what you need. If I got it right, what you're looking for could be done using

convert [file] -crop [size] +repage +adjoin [file]-%d.png


  • Log in or register to post comments
UrieW
joined 12 years 6 months ago
Friday, June 27, 2014 - 07:06

I also made the AIR ShoeBox tool's creator become aware of this. Thank you!

  • Log in or register to post comments
William.Thompsonj
joined 12 years 1 week ago
Friday, June 27, 2014 - 08:12
William.Thompsonj's picture

This might sound kind of crazy but I use Tiled to cut up sprite sheets as long as they're all the same size tiles (like the Universal LPC Spritesheet Generator makes). It has a huge number of other functions, most notably it's ability to make maps that are compatible with a huge range of game frameworks and programs.

http://www.mapeditor.org

  • Log in or register to post comments
UrieW
joined 12 years 6 months ago
Tuesday, July 1, 2014 - 16:51

What is the size of the tiles, though? I could only measure the sheets by crop.

  • Log in or register to post comments
William.Thompsonj
joined 12 years 1 week ago
Tuesday, July 1, 2014 - 22:30
William.Thompsonj's picture

Tiled works well for splitting tiles if they are all the same width and height. The stuff that comes out of the LPC spritesheet generator is uniform size and layout (64x64) so it should work well for that. I made an example sheet for reference (semi-random).

When I run Tiled it comes up to a blank screen. Under File->New... I setup my options as orthogonal, any layer format (mine defaults to base 64, zlib compressed), map size 1 tile width and 1 tile height, and tile size 64px width and 64px height. After that I add a map under Map->New Tileset, find the sprite sheet file with the Browse... button, tick the box that says Use transparent color: and click the colored box to change it to white (white background, makes sense if you want to lay the sprite on top of anything), and hit OK.

You might end up with a slightly different layout but I attached a screen shot of what it looks like for me.

Attachments: 
Preview
sheet.png sheet.png 133 Kb [27 download(s)]
Preview
tiled-sprite stuff.png tiled-sprite stuff.png 62.1 Kb [35 download(s)]
  • Log in or register to post comments
UrieW
joined 12 years 6 months ago
Wednesday, July 2, 2014 - 23:05

Here is what I did in Stencyl:

 After I did what you did, I was able to figure that using 21 rows, 13 columns, 1x(Standard) and "No Smoothing" can result in making animation frames that do not overlap. Then, I also found the frames I wanted can be achieved by cutting them in the same resize, only with the collapse animation omitted. Thank you and cheers!!!!!

  • Log in or register to post comments
William.Thompsonj
joined 12 years 1 week ago
Wednesday, July 2, 2014 - 23:21
William.Thompsonj's picture

Hey, Stencyl is made with HaXe! That's a pretty neat tool to see, thanks for sharing.

  • Log in or register to post comments