HOME | DD

Published: 2007-05-29 14:34:26 +0000 UTC; Views: 47254; 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
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
basicvibe [2015-03-16 20:18:45 +0000 UTC]
DONT READ THIS. YOU WILL BE KISSED ON THEΒ BEST DAYΒ OF YOUR LIFE. NOW THAT YOU'VE STARTED READING, DONT STOP. THIS IS SO FREAKY. 1 say your name 10 times 2. say your mum's name 5 times and your crushes name 3 times 4. paste this onto 4 other games. If you do this, your crush will kiss you on the nearest Friday possible. But if you read this and do not paste this, you will get bad luck. SEND THIS ON 5 DIFFERENT GAMES IN 143 MINUTES. WHEN YOUR DONE, PRESS F6 AND YOUR CRUSHES NAME WILL APPEAR IN BIG LETTERS. THIS IS SO FREAKY IT ACTUALLY WORKS
π: 0 β©: 0
hatersgonnahate9123 [2013-05-12 05:01:52 +0000 UTC]
~tdprincess 6 days ago You are now cursed. You must send this on or you will be killed. Tonight at 12:00am, by Bloody Mary. This is no joke. So don't think you can quickly get out of it and delete it now because Bloody Mary will come to you if you do not send this on. She will slit your throat and your wrists and pull your eyeballs out with a fork. And then hang your dead corpse in your bedroom cupboard or put you under your bed. What's your parents going to do when they find you dead? Won't be funny then, will it? Don't think this is a fake and it's all put on to scare you because your wrong, so very wrong. Want to hear of some of the sad, sad people who lost their lives or have been seriously hurt by this email?
CASE ONE -
Annalise [Surname Removed] :She got this email. Rubbish she thought. She deleted it. And now, Annalise dead.
CASE TWO -
Louise [Surname Removed]: She sent this to only 4 people and when she woke up in the morning her wrists had deep lacerations on each. Luckily there was no pain felt, though she is scarred for life.
CASE THREE -
Thomas [Surname Removed]: He sent this to 5 people. Big mistake. The night Thomas was lying in his bed watching T.V. The clock shows '12:01am'. The T.V misteriously flickered off and Thomas's bedroom lamp flashed on and off several times. It went pitch black, Thomas looked to the left of him and there she was, Bloody Mary standing in white rags. Blood everywhere with a knife in her hand then disappeared. The biggest fright of Thomas's life.
Warning... NEVER look in a mirror and repeat -'Bloody Mary.Bloody Mary.' Bloody Mary... I KILLED YOUR SON' Is it the end for you tonight! YOU ARE NOW CURSED
We strongly advise you to send this email on. It is seriously NO JOKE. We don't want to see another life wasted. ITS YOUR CHOICE... WANNA DIE TONIGHT? If you send this email to...
NO PEOPLE - You're going to die.
1-5 PEOPLE - You're going to either get hurt or get the biggest fright of your life.
5-15 PEOPLE - You will bring your family bad luck and someone close to you will die.
15 -25 OR MORE PEOPLE - You are safe from Bloody Mary
π: 0 β©: 2
floofpuff In reply to hatersgonnahate9123 [2019-12-22 19:10:01 +0000 UTC]
shut the fuvk up please this spam is fucking rude and its nearly christmas GET. A. GRIP.
π: 0 β©: 0
Mareteyaokami64 In reply to hatersgonnahate9123 [2013-11-10 19:00:30 +0000 UTC]
quit spammers
π: 0 β©: 1
alltogethernow28 In reply to Mareteyaokami64 [2014-05-23 00:48:55 +0000 UTC]
Yup, lol, it would be a lot more convincing with proper grammar. "Your?" Really? Even spammers can do better than that.
π: 0 β©: 0
NightpawOFDarkness [2013-04-01 11:32:41 +0000 UTC]
Thank you soooo much! You helped me alot! All i needed was just a few lines of codes, and i spent hours trying to find out how to make a dress up with buttons.
π: 0 β©: 0
Lumaga [2013-03-23 01:08:20 +0000 UTC]
Nice tutorial, I learned a few very useful things from it, thank you very much!
π: 0 β©: 0
shittystainshit [2013-01-21 12:49:03 +0000 UTC]
ty so much 6 this tutortila and i would like 3 assy thank u for credit to u frerss dress gameup thaank
π: 0 β©: 0
Rebehm [2012-12-10 04:04:49 +0000 UTC]
I just want to tell you that your generous gift is still helping people get started with Actionscript. Thank you very much for making this tutorial.
π: 0 β©: 0
donndo [2012-08-31 19:36:43 +0000 UTC]
plz man would you help me out, I'm Aweful In creating flash games with macromedia flash 4
π: 0 β©: 0
That-s-Just-How-I-Am [2012-02-27 23:23:34 +0000 UTC]
I'm have major issues with the color change buttons.
I've tried 3 different button codes:
on (release) {
_root.hair.gotoAndStop(FRAME#HERE);
}
gotoAndStop()
and the one in this Tut.
I'm using Adobe Flash CS5.5 AS2, if that helps.
It's a white shirt and then a red shirt on the next keyframe.
The 2 shirts are both instance-named "dress" and the button is "red_dress_button"
Please help!
π: 0 β©: 0
jiejen237 [2012-02-09 10:56:01 +0000 UTC]
Thank you for making this easy to understand tutorial!
π: 0 β©: 0
RKazumi [2011-06-16 16:42:11 +0000 UTC]
i have a question:
i know its possible, ive just got no idea how to do it:
how would you incorporate an if/else statement with what ive dubbed as the visibility statement (seen below)?
on (release) {
_root.instance_name_here._visible = true;
_root.instance_name_here._visible = false;
}
what im aiming for:
i want the game to know that when a certain eyestyle is selected, it only shifts through options of eyecolor for that eyestyle (all the eyestyles have the same applicable eyecolors, ive just made fitted versions of the pupil for each eyestyle). i guess this is a simplified version of the code im looking for:
if eyestyle 3 is selected, then only these pupils will be visible when the proper button is clicked:
eyestyle 3-1,
eyestyle 3-2,
eyestyle 3-3,
eyestyle 3-4,
eyestyle 3-5,
eyestyle 3-6.
else, they will be invisible.
can ya help me out with this? because i dont know how to make it interchangable for each eyestyle.....
π: 0 β©: 0
orange-mushroom [2011-05-28 15:42:11 +0000 UTC]
ugh finally
every person i asked about how they made the clothes change color didn't answer me
like it's some top secret stuff that only chosen ones deserve to know
π: 0 β©: 0
QTpie4753 [2011-01-18 17:04:18 +0000 UTC]
if i click the right button, i don't see any 'convert to symbol' thingy... what do i do now??
i like ur tutorial!!!
π: 0 β©: 0
drago248 [2010-12-17 20:40:44 +0000 UTC]
how do u turn on macromedia flash player to make somethin like this?
π: 0 β©: 0
BlAcK-BlADEn [2010-12-14 22:57:20 +0000 UTC]
This is exactly the sort of resource I was looking for ^^
Thank you so much for making!!
π: 0 β©: 0
Atrixy [2010-11-09 17:08:47 +0000 UTC]
I have a problem with the colours. The frames with different colours are inside the symbol of the pants or in the scene? Sorry, I'm new with action script ... ^^U
π: 0 β©: 0
Atrixy [2010-11-07 00:58:53 +0000 UTC]
thanks!! I was looking a tutorial of auto-positioning for all the Internet and I didn't founded one!
π: 0 β©: 0
xXcookies898Xx [2010-09-10 10:02:14 +0000 UTC]
im still terrible at making a flash game D: i just cant do it i get frustrated >.<
π: 0 β©: 0
meilady [2010-08-24 04:51:06 +0000 UTC]
True, about the keeping at it. Dress-ups and flash in general, are pretty fun to mess around with ^^
Thanks for the intro to the whole positioning/snap-to thing; it's actually still a little confusing, but I haven't really tried it out. Hopefully, I'll figure it out though
π: 0 β©: 0
IresistableAshGirl [2010-08-19 00:22:27 +0000 UTC]
Sorry, but this is too complicated and I don't understand it.
π: 0 β©: 0
digidestinedgirl [2010-08-11 21:06:55 +0000 UTC]
I've been trying to get flash but it's just being a pain!
π: 0 β©: 0
thegodmachine [2010-07-01 17:10:02 +0000 UTC]
Thank you. I've been searching for a tutorial that explained how items can snap to place.
π: 0 β©: 0
girluver121 [2010-05-20 00:13:32 +0000 UTC]
ive gotten to flash mx 2004 but i have no idea how to get to the place to make dress ups.......
π: 0 β©: 1
IresistableAshGirl In reply to girluver121 [2010-08-19 00:22:58 +0000 UTC]
It's just flash document.
π: 0 β©: 1
IresistableAshGirl In reply to girluver121 [2010-08-20 02:16:18 +0000 UTC]
It will be the first one.
π: 0 β©: 1
IresistableAshGirl In reply to girluver121 [2010-08-21 01:15:42 +0000 UTC]
sorry can't help you much further but you might see it if you look up how to make a dress up game on youtube.
π: 0 β©: 1
Riveena [2010-04-04 11:37:47 +0000 UTC]
Just one of the things I've been searching! Tnxxxxxxxxx so much!!
π: 0 β©: 0
Seexbrot [2010-03-15 16:32:22 +0000 UTC]
That's exactly what I am looking for but unfortunately it doesn't work D:
π: 0 β©: 0
kryptocow [2010-01-06 07:10:59 +0000 UTC]
Hrmm, I think I'm misunderstanding something about the hitTest...
If I just drop it in as is:
if (_root.tshirt, hitTest(_root.Pop)) {
then it snaps back to its original point when I release it. But if I change it to:
if (_root.jeans, hitTest(_root.doll)) {
it snaps to the point on top of the doll, no matter if I dragged it on top of the doll or not.
π: 0 β©: 0
The-Kirbster [2009-12-27 05:33:36 +0000 UTC]
This was a very helpful tutorial. However, I find that when trying to code the buttons that change the color of clothes, I am told "Statement must appear within On handler".
I am quite certain I am using an on handler. on(release), and all that.
If you have any insights, I would appreciate it. Nevertheless, I enjoyed this tutorial.
π: 0 β©: 0
White-Wolf-Terra [2009-12-18 20:21:18 +0000 UTC]
does this work for PhotoShop too cuz im gettin photoshop and wanted to try it~Desu
π: 0 β©: 0
bottomraider [2009-12-03 15:44:03 +0000 UTC]
Hey you seen really good at this can you explain to me how to make a button to change your charitics appearence, example say I want a figure to be thin, so I have a thin button next I want them to be fat s I make a fat button. How do I do this so the figure and the items that goe with each choice appear only when that choice is active.
Is this too difficult to explain?
π: 0 β©: 0
PrincesTomboy [2009-10-20 23:23:04 +0000 UTC]
... it isnt working for me D8 i:
converted it to a movie clip
gave it an instance
m on first frame
copy/paste-d it on the FRAME
ps im on flash 8
help?
π: 0 β©: 0
PrincesTomboy [2009-10-20 18:28:36 +0000 UTC]
thank u, fave! btw... what does hit do? i cannever figure that out
π: 0 β©: 0
pinkiblu [2009-09-27 21:37:44 +0000 UTC]
What should I do if I want the close to snap on the character???
π: 0 β©: 0
Masterge77 [2009-09-09 12:58:29 +0000 UTC]
What if i don't want drag and drop, what If I want to use arrows to change the items, and they stay in that place staticly without having to click and drag, you know, something like 's create a fursona, or the various South Park creators dotted around the net?
π: 0 β©: 0
rafaelfox [2009-08-27 12:31:47 +0000 UTC]
AAAAH!
Thank you so much for this, it's just what I was looking for!! They can match exactly and change colors too *__*
Aaah by the way, I already started mine, but I was just wondering, if can share the code, or explain, how you made the "mouth" by just clicking.. I'm a complete newbie ;__;
but, thank you so much for all your hard work on this! XD
π: 0 β©: 1
PrincesTomboy In reply to rafaelfox [2009-10-20 22:33:09 +0000 UTC]
to rafael fox, i can help you with the change-by-click part ^^ just simply to a dou button. draw the diff mouths then copy and paste where u want them on the same frame [1frame-per-mouth]^^
π: 0 β©: 0
dream-puddle [2009-08-26 17:19:24 +0000 UTC]
OMG! Thank you sooooo much! I had the same problem that you did, not being able to find a tutorial for how to make them snap into place and change colors. This is exactly what I'm looking for and it's so easy to follow and understand!
Everything is explained really well and I like how you give the reasoning behind everything! I want to give you a hug! Haha
Your amazing
π: 0 β©: 0
| Next =>