Jump to content

Recommended Posts

When I export the project as spritesheets it makes the sprites attached to them. I want to make a certain space between each sprite. How can I do this?

This is how they look:
z7RyoHX.png

This is how I want to:
a6lHeS3.png

 

Note: I have Steam version of the software

Share this post


Link to post
Share on other sites

You can export PNG images and use this:

http://www.imagemagick.org/script/index.php

make sure they are sequentially named and then use this command from inside the images folder:

montage -geometry 256x256+0+0 -background transparent *.png SpriteSheet.png

change teh 256x256 with your tiles dimensions, and the +0+0 change to the amount of padding you want around the images.

 

You can save that command in a text file, and rename the file to *.bat or *.cmd so you do not have to type it every time.

Here is the file I use so it cleans up the folder every time:

del SpriteSheet.pngmontage -geometry 256x256+0+0 -background transparent *.png SpriteSheet.png

Here is a fun tip, Save the file in your :

Disk where windows is installed:\Users\YOUR_NAME_HERE\AppData\Roaming\Microsoft\Windows\SendTo

 

Now you can just hilight an entire folder, rightclick on the images and select Send to: The_batch_File_You_Made.bat

Poof! you have a sprite sheet!

 

Be sure to play with image magic! ther are a lot of great little tricks you can do, tha save loads of time. Resizing and rotating an entire folder of images? No problem!

Share this post


Link to post
Share on other sites

Another option is to simply use the source "rectangle/custom rect" feature while exporting. This would allow you to perfectly control how much space you have around your frames.

 

If your coin is 100 by 100 pixels and centered. setting top=-50, left=-50 right=50 bottom=50 would crop it with no space... adding 1 to each number (-51 and 51 respectively I mean) would give you a 2 pixel border of space all around.

 

Cheers.

Share this post


Link to post
Share on other sites
On 9/1/2015 at 10:51 AM, Mike at BrashMonkey said:

Another option is to simply use the source "rectangle/custom rect" feature while exporting. This would allow you to perfectly control how much space you have around your frames.

 

If your coin is 100 by 100 pixels and centered. setting top=-50, left=-50 right=50 bottom=50 would crop it with no space... adding 1 to each number (-51 and 51 respectively I mean) would give you a 2 pixel border of space all around.

 

Cheers.

Awesome!!! I've been looking for info on how to do that!

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...