Welcome to Inkbunny...
Allowed ratings
To view member-only content, create an account. ( Hide )
Jerk
« older newer »
Oob
Oob's Gallery (393)

Dress-up Tutorial

Character Maker
tutorial.swf
page 1
page 2
by Oob
This is just a small something for a couple of people that asked me about it. I used a small doodle from a  while ago and tried to really summarize the steps that I go through when making my dress up flashes.

I'm not sure how well I explained everything but you might need some minimal knowledge of flash and ActionScript so that you're not just completely confused. Also some things might be slightly different between flash versions, and the code is specifically for ActionScript 3.

If you don't know programming well, I recommend putting the buttons either on the right or bottom, because using this method will place all the layers on the top left corner (though it's not hard to specify a different position if you look up the AS commands).

I don't think there are any tags to make the code keep the indentation or to even collapse it, but I'll keep it in the comments in case something happens to the above link.


package Classes {

import flash.display.*;
import flash.events.*;

    import flash.net.*;
    import flash.utils.ByteArray;
    import com.adobe.images.PNGEncoder;


public class Engine extends MovieClip {

var scf:Bitmap = new Bitmap(new scarf());
var sho:Bitmap = new Bitmap(new shorts());

public function Engine() : void {

stage.addChild(sho);
stage.addChild(scf);

scf_button.addEventListener(MouseEvent.MOUSE_DOWN, scf_function);
sho_button.addEventListener(MouseEvent.MOUSE_DOWN, sho_function);
sav_button.addEventListener(MouseEvent.MOUSE_DOWN, sav_function);

scf.alpha=0;
}


function scf_function(event:MouseEvent):void {
if (scf.alpha==1) {
scf.alpha=0;
} else {
scf.alpha=1;
}
}

function sho_function(event:MouseEvent):void {
if (sho.alpha==1) {
sho.alpha=0;
} else {
sho.alpha=1;
}
}


private var fileReference:FileReference;

public function sav_function(evt:MouseEvent):void {
var b:BitmapData = new BitmapData(350, 550);
b.draw(stage);
save(b);
}

public function save(b:BitmapData):void {
try {
var pngBytes:ByteArray= PNGEncoder.encode(b);
fileReference=new FileReference();
fileReference.save(pngBytes,"tutorial.png");
} catch (e:Error) {
trace(e);
}
}

}
}


Keywords
male 1,108,918, rabbit 127,822, bunny 104,419, male/solo 32,640, shorts 9,731, scarf 7,688, flash 3,833, tutorial 585
Details
Type: Shockwave/Flash - Animation
Published: 8 years, 3 months ago
Rating: General

MD5 Hash for Page 1... Show Find Identical Posts [?]
Stats
3,510 views
140 favorites
17 comments

BBCode Tags Show [?]
 
Lambent64
8 years, 3 months ago
D'aw! Look at the little wabbit!
KaloTheSkunk
8 years, 3 months ago
Thanks for the info ^^
Zaaru
8 years, 3 months ago
Thank you so much! It's pretty clear and useful! I'll try to make one when I've got some time! :3
Krechevskoy
8 years, 3 months ago
Super awesome!  Thank you very much for this!!!
cinnamoncookies
8 years, 3 months ago
This is great! Thanks for taking the time to do this tutorial~
Charliemon
8 years, 3 months ago
dude thanks for sharing this xx
Graedius
8 years, 3 months ago
Dress up instructions:
1) Find cute animal boy
2) Find snug boxers
3) Find other clothes
4) Make him pose with strong arms
5) <3
Oob
Oob
8 years, 3 months ago
Now that sounds like a winning recipe.
KeleandStar
8 years, 3 months ago
Cool tutorial,it should also be noted you could also make a movieclip for each clothing type and in each movieclip have all the diffrent images of the clothes then just use gotoAndStop commands to cyle through each article of clothing. It may save you a bit of space ^^
Oob
Oob
8 years, 3 months ago
You're still going to need all the images on there so I don't think the size difference will be noticeable. It is a good way to organize things if you have many different images of one type, like you said.
BreakingCloud
8 years, 3 months ago
Heya! Thanks so much for this! It's very informative! ^-^ I look forward to making some dress ups one day<3
GaijinDX
8 years, 3 months ago
Miiiight just use this someday, thanks!
VastWhite
8 years, 3 months ago
AAAA THANK U FOR MAKING THIS,,,
Hoya82
8 years, 3 months ago
Shorthand piece toggle method:

function toggle(piece:Bitmap):void {
  piece.visible = !piece.visible;
}

scf_button.addEventListener(MouseEvent.MOUSE_DOWN, function() { toggle(scf); });
sho_button.addEventListener(MouseEvent.MOUSE_DOWN, function() { toggle(sho); });
Oob
Oob
8 years, 3 months ago
That is pretty good! And I actually didn't know that visible was a propriety so I'll probably use that from now on too.
shrapnelman88
8 years, 3 months ago
Lay Yer Layer on the Layer.
CatAngel
8 years ago
Damn! I really want hugs (or milk)
Or just please pet me
New Comment:
Move reply box to top
Log in or create an account to comment.