HOME | DD

Rose-Layon — Dress up tutorial

Published: 2007-05-29 14:34:26 +0000 UTC; Views: 47265; Favourites: 663; Downloads: 828
Redirect to original
Description ----------------- EDIT -----------------

Thanks for all the fav's and comments, they make me really happy

But I'm sorry to say that I will not be replying to comments about the ActionScript any more, I just don't have the time...

If you have any questions, I suggest searching the internet. There are lot's of good forums out there

----------------- EDIT -----------------

When I made a dress-up game I wanted some specific things, like clothes that could change color and clothing that snapped in the right place. So I looked for a tutorial. I looked all over the Internet but I couldn't fined one. So I decided to just fight whit actionscript head on. After a lot of blood sweat and tears (mostly from me and not from actionscript ) I finished my dress-up game and was very happy.

When some people asked me how I had made this I decided to write a tutorial (just because I am just THAT kind of a nice person and not at all because I could use it to score points at my school) It took me a really long time to finish this tutorial but it's finally done!

This is the first time I've made an tutorial or even tried to explain actionscript and I 'm not an actionscript expert, so if my explanations are unclear or wrong please tell me, so I can improve them. Also English is not my first language so please tell me if I made spelling mistakes so I can change that.

I've used Flash MX 2004, in case you were wondering.

Pleas tell me what you think of this tutorial and if it was of any use. And if you make a dress up game please send me the link .

--- Edit ---

Here is the code I used, so you can copy and paste it

stop();
this.onPress = function() {
startDrag(this);
};
this.onRelease = function() {
stopDrag();
if (_root.eyes, hitTest(_root.Pop)) {
setProperty(this, _x, 445.8);
setProperty(this, _y, 203.7);
} else {
setProperty(this, _x, 543.2);
setProperty(this, _y, 127.9);
}
};

and for the buttons:

on (press) {
_root.skate_pants.gotoAndStop(3);
_root.baggy_pants.gotoAndStop(2);
_root.skirt.gotoAndStop(1);
_root.punk_pants.gotoAndStop(6);
_root.short_pants.gotoAndStop(7);
}
Related content
Comments: 234

xXRawrcoreXx In reply to ??? [2008-06-10 17:13:55 +0000 UTC]

Nah, I've Got My Own Way Of Doing It. c:

👍: 0 ⏩: 0

MousyLee In reply to ??? [2008-06-02 06:34:25 +0000 UTC]

Really nice, told me everything I wanted to know.

Great tut; the only one I could find that told me how to color change and snap objects.

👍: 0 ⏩: 1

Rose-Layon In reply to MousyLee [2008-06-02 08:48:32 +0000 UTC]

Thank you

Also for the ^^

👍: 0 ⏩: 1

MousyLee In reply to Rose-Layon [2008-06-02 09:23:59 +0000 UTC]

You are very welcome.

👍: 0 ⏩: 0

marietteclyde In reply to ??? [2008-05-21 14:53:56 +0000 UTC]

hey, i was wondering how do you make a button so when you click on it you can change the skin colour of the doll?

👍: 0 ⏩: 1

Rose-Layon In reply to marietteclyde [2008-05-23 17:26:07 +0000 UTC]

The same way you make the clothing change colour I think...

👍: 0 ⏩: 0

fire-kitty In reply to ??? [2008-05-02 03:41:37 +0000 UTC]

and how do you upload them onto deviantart? D: mine doesn't seem to work.

👍: 0 ⏩: 1

Rose-Layon In reply to fire-kitty [2008-05-23 17:29:08 +0000 UTC]

Sorry for my late response.

You export it to a .swf and you should be able to upload it.

Is it working now?

👍: 0 ⏩: 0

PiposaruX3 In reply to ??? [2008-03-28 18:58:46 +0000 UTC]

Well , I figured out that I did make the clothing layers but the outfit color ends up as part of the background because I can't get them as part of the symbol. & When I don't have any color on , ( I made a dressup any way , ) all the clothes just end up in a totally different area .

👍: 0 ⏩: 1

Rose-Layon In reply to PiposaruX3 [2008-04-04 21:00:52 +0000 UTC]

I think it could be a problem whit the positioning, make sure the symbols x and y stand at 0,0 as I explained on page 14 and 15 in the tutorial.

Good luck whit your game

👍: 0 ⏩: 0

PiposaruX3 In reply to ??? [2008-03-19 19:58:33 +0000 UTC]

Excuse , me but when I try to make a dressup , I can't get my pieces of clothing to have color in them . When I make my clothing I color them but they won't stay on the clothing . They end up as part of the background ! Please help !

👍: 0 ⏩: 2

fire-kitty In reply to PiposaruX3 [2008-05-02 03:38:45 +0000 UTC]

You have to use the lasoo tool. First you make it into a symbol, then colour, then lasoo it as whole and make that into a symbol, don't delete the first symbol though in the library. I had the same problem and I figured out that this worked!

👍: 0 ⏩: 1

PiposaruX3 In reply to fire-kitty [2008-05-04 18:02:20 +0000 UTC]

Thank you !

👍: 0 ⏩: 0

Rose-Layon In reply to PiposaruX3 [2008-03-28 18:16:51 +0000 UTC]

Did you make symbols out of the clothing?

And are you paying attention to what layer you are working on?

Else I don't really know what happened...

👍: 0 ⏩: 0

leona8 In reply to ??? [2008-03-16 19:40:30 +0000 UTC]

T^T
thankiu soo much ;3
i will make use this tuts wisely

and ..i will show u the result hehe

nice tuts ..

👍: 0 ⏩: 1

Rose-Layon In reply to leona8 [2008-03-28 18:15:13 +0000 UTC]

Thank you

I'm looking forward for it ^^

👍: 0 ⏩: 0

AznV In reply to ??? [2008-03-10 19:03:46 +0000 UTC]

WOW! This is the first tutorial I found here on deviantart and made me think like "ohh I will make a game too!" Then I fav. it 'cause I haven't enough time for reading it at the moment. After a while I forgot it I found someother tutorials and used them. BUT SOSOSO wrong of me! This tutorial shows how to do the clothes snap to the doll! I have searched for this in months! But yeah then I search hittest tutorial and found this again! I read the first page and it show you how to make the clothes snap to the doll! YAY thank you!

👍: 0 ⏩: 1

Rose-Layon In reply to AznV [2008-03-28 18:14:33 +0000 UTC]

Haha, you are welcome

👍: 0 ⏩: 1

AznV In reply to Rose-Layon [2008-03-30 18:38:30 +0000 UTC]

Thanks! I am SO exited! xD (poor me I can't make my dressup game 'cause I promised my friend I wouldn't start on a new game as I always do without making my old game finish xD)

👍: 0 ⏩: 1

Rose-Layon In reply to AznV [2008-04-04 20:54:17 +0000 UTC]

Haha, I have that same problem, there is so much I want to do and make! Starting new things is more fun than finishing old things.

Good luck whit making your game

👍: 0 ⏩: 1

AznV In reply to Rose-Layon [2008-04-05 12:14:10 +0000 UTC]

Thanks

👍: 0 ⏩: 0

AshiMonster In reply to ??? [2008-03-05 15:05:52 +0000 UTC]

aw it's so useful

👍: 0 ⏩: 1

Rose-Layon In reply to AshiMonster [2008-03-06 06:48:31 +0000 UTC]

Thank you

Also for the

👍: 0 ⏩: 1

AshiMonster In reply to Rose-Layon [2008-03-06 11:01:18 +0000 UTC]

your welcome!

👍: 0 ⏩: 0

rebeliuz [2008-03-01 05:36:30 +0000 UTC]

Hey there! Your tutorial was very helpful. I wonder if I can send you my flash game and ask you some questions about it. I didn't quit understand Snap to objects and then ~kelpiehunterkai sent me the link to this tutorial. wow, you're a life saver.

👍: 0 ⏩: 1

Rose-Layon In reply to rebeliuz [2008-03-01 12:18:45 +0000 UTC]

I'm really happy it helped you!

And I'll send you a note about you sending me your game

👍: 0 ⏩: 1

Rose-Layon In reply to Rose-Layon [2008-03-01 12:24:59 +0000 UTC]

Oh, and thank you for the !

<3

👍: 0 ⏩: 0

kelpiehunterkai In reply to ??? [2008-03-01 05:16:01 +0000 UTC]

this was incredibly helpful you answered so many of my questions!

👍: 0 ⏩: 1

Rose-Layon In reply to kelpiehunterkai [2008-03-01 12:12:36 +0000 UTC]

Yay, I'm glad it helped you

👍: 0 ⏩: 0

Shieda In reply to ??? [2008-01-01 20:15:14 +0000 UTC]

OMG OMG OMG!!!!!!!!!!!!!!!!!!!! I LOVE YOU!!! THANKYOU! Your my hero!!! Im starting a game right now!!

👍: 0 ⏩: 2

Rose-Layon In reply to Shieda [2008-03-01 12:11:54 +0000 UTC]

I'm glad you like it so much ^^

👍: 0 ⏩: 0

ThePinkSparkles In reply to ??? [2007-12-27 15:46:31 +0000 UTC]

I'm having a little trouble with the code. It's weird, because it worked with ONE piece of clothing, and for the rest, even if I put the same code in, it doesn't work. I even deleted the code from that one piece, and it still worked. I don't know what's wrong.

👍: 0 ⏩: 1

Rose-Layon In reply to ThePinkSparkles [2007-12-27 21:35:29 +0000 UTC]

Hmm... I don't really know...

Are the names and instance names of the objects the same as in the ActionScript?

Else you could check if your target path is correct whit the "Insert a target path" button in the actions view. Your target path is the part with _root in it. You remove that and press the "insert a target path" button and find the object you want that way, if something is wrong Flash will give you a warning. That way you know your target path is right.

I hope this helps you and my explanation is not too complicated

👍: 0 ⏩: 1

ThePinkSparkles In reply to Rose-Layon [2007-12-27 22:34:49 +0000 UTC]

I don't really understand. D: I found the "insert target path" button, but the only thing in the box is the word "this".

👍: 0 ⏩: 1

Rose-Layon In reply to ThePinkSparkles [2008-01-02 11:15:23 +0000 UTC]

Then I don't know how to help you... sorry

Maybe you could try the tutorial again in a new file, it should work...

👍: 0 ⏩: 0

sapphirez In reply to ??? [2007-12-15 02:59:13 +0000 UTC]

cool, I've always wanted to see dress-game tutorial that 'snaps'! will give this a try one day.

Thanks!

👍: 0 ⏩: 1

Rose-Layon In reply to sapphirez [2007-12-16 20:36:48 +0000 UTC]

I'm glad it made you happy, I hope you try it soon, because your art is very cute!

Thank you for the too

👍: 0 ⏩: 0

pikonama In reply to ??? [2007-12-09 13:03:45 +0000 UTC]

This is exactly what I was looking for, all the other dressup tutorials are about 'basic' tutorials. I saw yours and nearly died with joy! Thank you so much for a nicely presented flash tut and copy paste codes~ You are my hero. ^3^

👍: 0 ⏩: 1

Rose-Layon In reply to pikonama [2007-12-09 21:52:31 +0000 UTC]

Thank you so much!

I'm so glad you like it!

And thanks for the too ^^

👍: 0 ⏩: 0

justawhile12 In reply to ??? [2007-11-02 22:46:55 +0000 UTC]

what program do i need to get??????

👍: 0 ⏩: 1

Rose-Layon In reply to justawhile12 [2007-11-04 11:46:25 +0000 UTC]

Flash!

I used Flash MX 2004 but it will probably work on other versions too

👍: 0 ⏩: 1

justawhile12 In reply to Rose-Layon [2007-11-07 01:41:44 +0000 UTC]

o ok

👍: 0 ⏩: 0

Kururu-Pon In reply to ??? [2007-10-28 03:20:04 +0000 UTC]

for some reason even if i copy and past the script it comes up with errors 0_o fux T_T

👍: 0 ⏩: 1

Rose-Layon In reply to Kururu-Pon [2007-10-28 20:25:43 +0000 UTC]

Oh...what kind of errors?

👍: 0 ⏩: 1

Kururu-Pon In reply to Rose-Layon [2007-10-29 13:18:44 +0000 UTC]

**Error** Scene=Scene 1, layer=clothing, frame=1:Line 1: Statement must appear within on/onClipEvent handler
stop();

**Error** Scene=Scene 1, layer=clothing, frame=1:Line 2: Statement must appear within on/onClipEvent handler
this.onPress = function() {

**Error** Scene=Scene 1, layer=clothing, frame=1:Line 5: Statement must appear within on/onClipEvent handler
this.onRelease = function() {

Total ActionScript Errors: 3 Reported Errors: 3

+++

thats what i get ^^ even after changing the x and y... it's ok tho please don't trouble yourself!! i found some more code that works as well ^^


but other than that error i get (maybe it's just my flash?? 0_o) your tutorial was very very helpful! thankyou so much for sharing this with us

👍: 0 ⏩: 1

Rose-Layon In reply to Kururu-Pon [2007-10-30 17:02:31 +0000 UTC]

Oh...that's weird...

No, I don't think I can help you whit that...

Did you close all the statements whit }?

I'm glad you found my tutorial helpful ^^

👍: 0 ⏩: 1

Kururu-Pon In reply to Rose-Layon [2007-10-31 01:27:09 +0000 UTC]

yar >.> i tried the bracket thing coz it's happened before but something just didnt work but thats ok XD you're welcome!! your tutorial was great

👍: 0 ⏩: 0

MissMatilda-x In reply to ??? [2007-10-22 12:48:50 +0000 UTC]

what do I do if I want to upload it to DA? =]

👍: 0 ⏩: 1

Rose-Layon In reply to MissMatilda-x [2007-10-25 13:12:16 +0000 UTC]

Just upload it...

What do you mean?

👍: 0 ⏩: 1


<= Prev | | Next =>