PDA

View Full Version : Spritesheet tutorials


Ciubhran
06-21-2009, 03:07 PM
I am looking for various ways in Flash and ActionScript to break apart a spritesheet and make it into a movie clip.

Currently I am having trouble where the width of one sprite in the spritesheet is wider than the others, making the wider sprite look more blurry, like Flash tries to compact it somehow.

What I am currently doing is just to break apart the sprites, sprite by sprite, pixel by pixel, and then transforming it to graphics, then adding the graphics into the frames in an empty movie clip, and centering them to the middle of the movie clip. But the "wider" graphics look blurry, and I do not want this.

So, I am looking for "proper" ways to make a spritesheet into a movie clip in Flash.

ojebus
06-21-2009, 06:04 PM
I did this before and uploaded the entire spritesheet to flash. I selected Modify > break apart then selected the individual sprites; put them on their own frames according to what I needed and centered to stage horzontal and vertical. Where there was the problem of a sprite being bigger I would use the View > Rulers pull a line from the rulers and line the sprite up with the rest via some part of the character that was the same (like the bottom and side of a foot). This creates a smooth translation from frame to frame.

Ciubhran
06-21-2009, 06:17 PM
I do not understand.

How do rulers help with this problem?

All rulers seem to do is help you position the sprite, which I already do by positioning it to the center both horizontally and vertically.

rrh
06-22-2009, 01:03 AM
Positioning might be the problem. If one is an even number of pixels wide and another is an odd number, then just centering them all might positiong the odd ones half-way between pixels, resulting in blurring like you said.

bluemagica
06-22-2009, 03:56 PM
http://www.gotoandplay.it/_articles/2006/06/beatemup.php

try reading that, mainly the bottom section!