Jump to content

Recommended Posts

Posted

I am trying to split up a sprite sheet and export each sprite as a separate file. I think I can do this with the Slice tool from the Export Persona. I figured out how to create a single slice by drawing a box around a single sprite, but I don't want to draw boxes by hand around each sprite. The Affinity Help page on the Slice Tool says, "As an alternative to drawing slices using the tool, selected objects and layers can also be made into automatically-sized slices." The pixel size of each sprite is the same, so I would think I should be able to slice the entire spread into that size grid, but I can't find more information on how to do that! Could someone point me to information on how to do this or give me the steps to perform?

Thx!

Posted

The technique demonstrated in the post linked below might suit your needs. Just use straight lines instead of curved ones.

 

Alfred spacer.png
Affinity Designer/Photo/Publisher 2 for Windows • Windows 10 Home/Pro
Affinity Designer/Photo/Publisher 2 for iPad • iPadOS 17.5.1 (iPad 7th gen)

Posted
8 hours ago, Alfred said:

The technique demonstrated in the post linked below might suit your needs. Just use straight lines instead of curved ones.

 

I think someone has crossed wires lol!

iMac 27" 2019 Sequoia 15.0 (24A335), iMac 27" Affinity Designer, Photo & Publisher V1 & V2, Adobe, Inkscape, Vectorstyler, Blender, C4D, Sketchup + more... XP-Pen Artist-22E, - iPad Pro 12.9  
B| (Please refrain from licking the screen while using this forum)

Affinity Help - Affinity Desktop Tutorials - Feedback - FAQ - most asked questions

Posted

Is the sprite sheet a single pixel layer? in which case you will have no other choice to to either create slice boxes for each sprite or carve up the single pixel layer into separate layers and use guides to create the grid to have the selection tool snap to. This way all the sprites will have the same sized dimensions. See what I have done in the screenshot below.

image.thumb.png.181236c791b8e178b0a547511d2af146.png

Sprite sheet used as an example is from this tutorial: https://code.tutsplus.com/an-introduction-to-spritesheet-animation--gamedev-13099t

Because the sprites are the same dimension you only have to make a selection once, then you can move that selection to create a new layer for each sprite...

Screenshot2024-06-04at08_05_30.thumb.png.3d115ba5007ce5c427714db8385b799c.png

So the steps would be...

  1. Select the background layer
  2. Make a selection of the first sprite (top left) using the rectangle selection tool
  3. Press Cmd+X and then Cmd+V to cut and paste to a new layer.
  4. Rinse and repeat steps 1 through 3 changing the selection to the next sprite.

From there you can go to export persona and use the layer panel to make slices by selected all the layers to want slices made from and clicking Create Slice

Screenshot2024-06-04at08_10_42.thumb.png.c3cdeb1d274ce3387cf91fb1ee9e3741.png

Note: personally I think the button should change to plural (create slices) when multiple layers are selected

iMac 27" 2019 Sequoia 15.0 (24A335), iMac 27" Affinity Designer, Photo & Publisher V1 & V2, Adobe, Inkscape, Vectorstyler, Blender, C4D, Sketchup + more... XP-Pen Artist-22E, - iPad Pro 12.9  
B| (Please refrain from licking the screen while using this forum)

Affinity Help - Affinity Desktop Tutorials - Feedback - FAQ - most asked questions

Posted
41 minutes ago, firstdefence said:

I think someone has crossed wires lol!

Like me, maybe? :/  LOL!

Alfred spacer.png
Affinity Designer/Photo/Publisher 2 for Windows • Windows 10 Home/Pro
Affinity Designer/Photo/Publisher 2 for iPad • iPadOS 17.5.1 (iPad 7th gen)

Posted
22 minutes ago, firstdefence said:

Note: personally I think the button should change to plural (create slices) when multiple layers are selected

Needless to say, I agree! An alternative would be to change the existing label to the all-purpose version, ‘Create slice(s)’.

Alfred spacer.png
Affinity Designer/Photo/Publisher 2 for Windows • Windows 10 Home/Pro
Affinity Designer/Photo/Publisher 2 for iPad • iPadOS 17.5.1 (iPad 7th gen)

Posted

Thanks for all the ideas! I was hoping there was a more straightforward way to do this, like select a large area and then have an option to slice it up like you do for guides, either fixed values or percentages. But I shall use the suggested solutions for now. Thx again!

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.

Loading...
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.