Pixel Avatar Maker

Did this simple flash tools to make your own pixel avatar during 2013, which can be use as your social media profile pic.
Pixel Avatar
Below are some quick possibilities of what you can do with this editor.
Behind The Scene
Programming this is very simple. I actually spend more time creating the graphics. If you decide to make your own avatar maker in Flash, there are only few things you need to knowChanging Graphic Option
Different graphic sections (Hair, Eye, Mouth, Nose...) are store in different MovieClip and nested in a main MovieClip. Different options (Hair style1, Hair style 2, Hair style3...) are store in different frames. Then, you can just "gotoAndStop" on a particular frame. For example:
mcAvatar.hair.gotoAndStop(2);

Changing Color
To change color, you just need to tint the movieclip. For example:
var tmpColor:Color=new Color();
var tmpTint:uint = e.target.selectedColor; //value from colorpicker component
tmpColor.setTint(tmpTint,1);
mcAvatar.hair.transform.colorTransform = tmpColor;

Exporting Image
To export image from ActionScript. Download and install AS3CoreLib. Then you can use the following script to export image.
import com.adobe.images.JPGEncoder;
var tmpBitmap:BitmapData=new BitmapData(mcAvatar.width, mcAvatar.height);
tmpBitmap.draw(mcAvatar);
var tmpJPG:JPGEncoder = new JPGEncoder(100);
var tmpByte:ByteArray;
tmpByte = tmpJPG.encode(tmpBitmap);
var tmpFile:FileReference=new FileReference();
tmpFile.save(tmpByte, "avatar.jpg");
Pixel Me!
You can try to pixel avatar maker in my deviantart. This is develop with Flash AS3, so you might not be able to view with your mobile phone.
Comments
Post a Comment