Resize canvas?
Stryfe01
Member Posts: 146
I just realized what has been causing so much of my collision problems. The artist gave me my sprites that were built in flash, but there is so much dead pixels around them. I have used Gimp and photoshop elements to re-size the canvas. This has rid me of the dead space and now my sprite does not collide 15 feet away, but is there a way to batch process the re-size? He says he does not know how, but it is causing me huge problems.
Comments
(This is basic, but I use regular Photoshop - not elements, so I don't know if they both have these capabilities)
Open all the graphics at once in Photoshop. Create a new Photoshop document.
Using the layers palette, Shift-Drag each individual document into the new one.
You will now have one document with each graphic on its own layer, and if you shift-drag them, their registrations will stay correct.
All of the layers will be visible, so you will be able to see the minimum size graphic that you will need to hold all the graphics.
Now, take the rectangular marquee tool and make a selection as tight as possible around the graphics.
Use the option key and the shift key to fine tune the selection.
Once you have the tightest possible selection rectangle, select Crop from the Edit menu.
Now, turn off the visibility of all the layers except one. Export for Web as PNG-24.
Do this for all layers, one at a time.
A little tedious, but it shouldn't take longer than 5 minutes.