Deviant Login Shop  Join deviantART for FREE Take the Tour
I haven't been too motivated for making a dress up tutorial, since there are so many of them already. One day I sorta got interested in the idea anyway. And in order to stand out in the great amount of tutorials, I decided to take the average Hapuriainen route: make it unnecessarily large. I mean, what kind of idiot draws 100+ items for a tutorial? answer: me Actually this was already started in autumn, but I didn't have the time to finish it until now.

[edit]: Fixed the game a bit, the codes should work now. Sorry about the inconvenience! Thanks to KawaiiPandah for the words of wisdom on the importing art section.
Add a Comment:
 
:iconinsane-otaku181:
Insane-otaku181 1 day ago  Student Digital Artist
Okay, kind of a stupid question: is this a tutorial for actionscript 2 or 3? I have both so I'm just wondering which one would be more affective. 
Reply
:iconhapuriainen:
Hapuriainen 1 day ago  Hobbyist Digital Artist
Actionscript 2. I don't know anything about AS3.
Reply
:iconinsane-otaku181:
Insane-otaku181 1 day ago  Student Digital Artist
Ok then.
Reply
:iconrosyan:
Rosyan Apr 2, 2014  Student General Artist
Thank you for this tutorial, it was very helpful for me when making dress up as schoolproject. Though there was some problems with the next/ previous buttons, but I got it work my own way. (Not sure if it'd work with more complicated game, but for now it's ok.)
Reply
:iconkimmayz:
i tried to do the drawers, it works, but when i choose for example 'hats' the dress disapears even though it touches the doll
was i supposed to add some code to the doll or something?
Reply
:iconhapuriainen:
Hapuriainen Mar 13, 2014  Hobbyist Digital Artist
Are you sure the doll has an instance name? It's different from the movie clip name you give it when you create it.
Reply
:iconkimmayz:
oh i see!!! thank you =D
Reply
:iconhanatoa:
Hanatoa Mar 11, 2014  New member Hobbyist Interface Designer
I was just looking for a code that once you drag an item "outside" the doll it returns to it place and I found your tutorial very useful! Not just for that. 
Just a point, that code (the next I copy after those words) has some spaces on some lines that with Macromedia Flash 8 gives an error [I have seen someone else had a problem with that code and fixed with random spaces].

on(press) {
startDrag(this);
}

on(release) {
stopDrag();
if (this.hitTest(_root.doll)){
this._x = X COORDINATE ON THE DOLL
this._y = Y COORDINATE ON THE DOLL
}
     
else{
this._x = X COORDINATE WHEN THE ITEM IS NOT ON THE DOLL
this._y = Y COORDINATE WHEN THE ITEM IS NOT ON THE DOLL
}
}

on(releaseOutside) {
stopDrag();
if (this.hitTest(_root.doll)){
this._x = X COORDINATE ON THE DOLL
this._y = Y COORDINATE ON THE DOLL
}
     
else{
this._x = X COORDINATE WHEN THE ITEM IS NOT ON THE DOLL
this._y = Y COORDINATE WHEN THE ITEM IS NOT ON THE DOLL
}
}


The lines before "else" [12 and 24 for me] has 5 spaces and it gives a syntax error, and then says "else" doesn't match with "if". If delete those 5 spaces and click Tab (just one big space, instead of 5 small) it fixes the error. [I'm sorry if I explained it in a confusing way, I'm not English :'D]
Reply
:iconhapuriainen:
Hapuriainen Mar 11, 2014  Hobbyist Digital Artist
Ah, that... There used to be some other part of the tutorial that gave people who copypasted it syntax errors because the formatting changed spaces to something weird. I thought I had fixed it all, but apparently there's still some left.

Thanks for telling me, I'll try to remember to do something about it.
Reply
:iconsheapsheap:
Thank you very much for this tutorial, I was looking exactly something like this (I already knew the basic code)
I spend all the afternoon doing one of these because of this ^^
Reply
Add a Comment: