GameSalad

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Resize canvas?

Stryfe01Stryfe01 Posts: 146Member
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

  • Stryfe01Stryfe01 Posts: 146Member
    no ideas guys?
  • JCFordJCFord Posts: 785Member
    You can set up batch resizing and cropping etc in Photoshop with Actions, but the image size and crop you want would need to be the same. I believe there are also 3rd party shareware apps that can do this, you would be best to search something like versiontracker.com
  • Stryfe01Stryfe01 Posts: 146Member
    cool will check it out. I did a few manually, but they were off and you can tell when you play the animation. It make a hug difference having those extra pixels gone.
  • goliathgoliath Posts: 1,427Member
    How many do you have to do?? I can't think of anything off the top of my head...

    Check out my video game website: http://myvideogamenews.com

    Check out my mobile game and art website. If you need artwork for your games, hit me up: http://academy413.wordpress.com

  • firemaplegamesfiremaplegames Posts: 3,206Member
    If I had to do that, I would do it like this:
    (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.
This discussion has been closed.