How do I prevent sprite from resizing?

DetheDethe Member Posts: 172
edited November -1 in Working with GS (Mac)
In my animation the sprites have several frames, some of which are different sizes. When I switch between them, some are squished or stretched. Can I work around this in GS, or do I have to use my graphics editor to get the images to all be one size?

Comments

  • firemaplegamesfiremaplegames Member Posts: 3,211
    you'll need them all to be the same size.
  • DetheDethe Member Posts: 172
    OK, I suspected that might be the case. Thanks for the confirmation.
  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    If different sizes are necessary you can place each one into the same size image file that is transparent all the way out to your largest image size. Sorry that doesn't make sense even to me.
    Lets say you have images that range from 20x20 to 100x100 and for what ever reason you want them all to be different sizes like an explosion for example. what you do is start with a 100x100 transparent canvas and then drop you 20x20 in the middle or wherever. then the next size up into another 100x100 transparent canvas and so on.
    LOL that still doesn't seem very clear sorry i have that effect when i release my ideas.

    Good Luck
  • DetheDethe Member Posts: 172
    I guess the problem is, when my background is transparent, GS seems to resize the sprite bounding box to fit the non-transparent portion of the image. So it doesn't matter if I make them the same size, if I don't get the opaque parts to fill the same size rectangle.

    That can't be right. Surely I'm making some elementary mistake here. Any clarification would be appreciated.
  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    that doesn't sound right it should hold the full image size to all the transparent parts
  • firemaplegamesfiremaplegames Member Posts: 3,211
    You should make all the .png files the same size as the largest image. If the largest image is 64x120 for example, then make all the images that size.

    Then make your Actor that size as well, 64x120.

    GS does not do pixel collision, so the transparent parts of the Actor will still collide.
  • DetheDethe Member Posts: 172
    Thanks for the feedback. I think I was confused about the size of the images exported from Vector Designer. I'll try editing the pngs to all be the same size.
Sign In or Register to comment.