HOME | DD

Published: 2007-05-29 14:34:26 +0000 UTC; Views: 47260; 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
leetachan [2009-08-01 13:26:43 +0000 UTC]
Thankyou very much for your tutorial... what a lifesaver... I use it to my game flash assignment.. If you don't mind you can see it in here [link]
A bunch of thanks...
👍: 0 ⏩: 1
Rose-Layon In reply to leetachan [2009-08-02 21:01:25 +0000 UTC]
I made it a whole time back, I'm so happy it's still useful
👍: 0 ⏩: 0
hafisidris In reply to ??? [2009-07-01 11:51:23 +0000 UTC]
are the clothes need to convert into button or juz straight into movie?
👍: 0 ⏩: 1
Rose-Layon In reply to hafisidris [2009-07-12 20:57:35 +0000 UTC]
You have to make them into movie clips
👍: 0 ⏩: 0
Butterfly567 In reply to ??? [2009-06-15 22:21:22 +0000 UTC]
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 mother 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 . Also feel free to ask me if you have any problems, I'm not sure if I can help, but I will try.
--- Edit ---
commented that it would come in handy to paste my code here, so people can copy paste if they want. And I thought that was a good idea, so here it is:
Also, I was wondering, are the colors too bright? Should the green of the text be darker? Please tell me what you think.
--- Edit ---
I made the colors of the text a little bit darker, I hope that it's more readable now
I took all the time to copt this down. Your welcome.
👍: 0 ⏩: 1
Rose-Layon In reply to Butterfly567 [2009-06-17 08:03:12 +0000 UTC]
Haha, you're really weird...
👍: 0 ⏩: 1
Butterfly567 In reply to Rose-Layon [2009-06-17 15:48:15 +0000 UTC]
Don't call me wierd! Ha ha ha!!
👍: 0 ⏩: 1
catrix-reload [2009-05-11 10:34:35 +0000 UTC]
I'm going to try this~ Thanks for making this tutorial~ ^^
👍: 0 ⏩: 0
tobi2moodring [2009-03-12 22:36:42 +0000 UTC]
Awesome tutorial!!! XD It really helped me make this game: [link]
Thank you!~
👍: 0 ⏩: 1
Rose-Layon In reply to tobi2moodring [2009-03-22 16:22:35 +0000 UTC]
I'm glad you found it useful!
Your dress up game is really cute
👍: 0 ⏩: 1
tobi2moodring In reply to Rose-Layon [2009-03-30 21:06:46 +0000 UTC]
You're tutorial saved me a lot of time and frustration I loved it!!
Thank you!~
👍: 0 ⏩: 0
HakuWeapon [2009-02-23 17:03:13 +0000 UTC]
Thank you, I'm trying to learn action script in class, gah it's just so confusing, the time line and the movie clips and all that junk ;o;
👍: 0 ⏩: 1
Rose-Layon In reply to HakuWeapon [2009-02-23 20:24:31 +0000 UTC]
Thank you for the
I felt that way too when I first started using flash... But if you keep trying things will become easier in time
Good luck
👍: 0 ⏩: 1
HakuWeapon In reply to Rose-Layon [2009-02-23 21:05:43 +0000 UTC]
awww thank you very much, it helps to atleat hear (or read) some encouraging words ;o;
👍: 0 ⏩: 0
lenden [2009-02-08 08:49:12 +0000 UTC]
I am learning all about flash, and this tutorial really helped me!
I didn't really use if for a dress up game... But I did use it for this: [link]
👍: 0 ⏩: 1
terrordactil [2009-01-22 13:25:45 +0000 UTC]
thanks this is helpful, ive almost finished a simple dress up game and this is the next step. awesome
👍: 0 ⏩: 1
Rose-Layon In reply to terrordactil [2009-01-23 21:38:06 +0000 UTC]
I'm glad you like it
Good luck whit your game
👍: 0 ⏩: 0
OMGitsJessie [2008-12-12 22:56:18 +0000 UTC]
I have nearly finished my game, and I wonder if you have any tips how to make it better? Clothes?
Great tutorial! It helped me alot through my game and sorted the action script problem (with 2.0 and 3.0) So thank you for posting this!
👍: 0 ⏩: 1
Rose-Layon In reply to OMGitsJessie [2009-01-03 23:09:24 +0000 UTC]
Good I'd like to see it, did you post it already?
How do you mean make better? To decide on clothes I looked at my own clothing and at my favourite anime
👍: 0 ⏩: 1
OMGitsJessie In reply to Rose-Layon [2009-01-05 17:48:01 +0000 UTC]
Yeh I have posted it. 'Dress up kerli'
OO.. I shall have a look at some clothes and anime then for clothing ideas. thanks
👍: 0 ⏩: 0
ShikaIno-Club In reply to ??? [2008-11-27 04:24:27 +0000 UTC]
Wait is this only for Flash 2.0? Cuz I have CS3.
👍: 0 ⏩: 1
Rose-Layon In reply to ShikaIno-Club [2008-11-29 18:35:07 +0000 UTC]
No. This tutorial is for ActionSctript 2.0 (this can be used in more versions of flash) but there is also ActionScript 3.0. When you open a new Flash file in Flash CS3 you can choose between using ActionScript 2.0 or 3.0 . I made this tutorial in Flash MX 2004 but if you choose to start a ActionScript 2.0 file things should be pretty much the same
👍: 0 ⏩: 1
ShikaIno-Club In reply to Rose-Layon [2008-12-01 05:30:59 +0000 UTC]
oh okay. well, this tutorial helped alot now! like REALLY alot lol.
👍: 0 ⏩: 1
ThisCelluloidDreamxx [2008-11-10 21:12:39 +0000 UTC]
this tutorial is great but im sorta having the same problem as Shini-Sara D: when i click the clothes they all go to the top of the doll and tha error doe thing appears. im sorta really bad at this so its probably the coordinate thing i really cant get to it
👍: 0 ⏩: 1
Rose-Layon In reply to ThisCelluloidDreamxx [2008-11-29 18:28:40 +0000 UTC]
I'm sorry for my late reply, I didn't have the time
You can change the coordinates of things in the property menu (usually at the bottom of the screen, you can also press Ctrl F3 to open it) At the left in the property menu you see and change the x and y positions I talk about in the tutorial.
I hope this helps you
👍: 0 ⏩: 1
ThisCelluloidDreamxx In reply to Rose-Layon [2008-12-01 01:20:14 +0000 UTC]
i didnt really get it sorry, but thanks for the help anyways. im just really bad at this stuff D:
👍: 0 ⏩: 1
Rose-Layon In reply to ThisCelluloidDreamxx [2008-12-01 20:20:46 +0000 UTC]
Oh, I'm sorry...
But don't give up to soon... My tutorial is for people who have a understanding of how flash works, so maybe it's just a little to hard to start with...
If you google on words like 'flash' 'tutorial' 'beginner' you can find a lot of helpful tutorials for absolute beginners
So, keep on trying, I'm convinced everyone can learn it
👍: 0 ⏩: 0
RiseofDarkFire [2008-11-09 18:17:00 +0000 UTC]
OK I'm a total noob at flash so first I have to say that I love how you made thisso easy to understand. I have just one problem.. When I try to do the actionscript thing, it keeps telling me that 'Current selection cannot have actions applied to it.' Can you help me?
👍: 0 ⏩: 1
Rose-Layon In reply to RiseofDarkFire [2008-11-29 17:02:34 +0000 UTC]
I'm sorry for my late reply...
Are you using Flash CS3? Because you have two versions of ActionScript (the programming language Flash uses) there is ActionScirpt 2.0 and ActionScript 3.0. This tutorial is written for ActionScript 2.0. When you open a new Flash file you can choose between using ActionScript 2.0 or 3.0 so this is where you should pick 2.0. If you do that you should be able to add the code
👍: 0 ⏩: 0
lampjelly [2008-10-27 10:03:57 +0000 UTC]
Ah, thanks so much for this! X3
I have a question now. About the buttons,,, well, I was quite succesful with it. Then on, my problem is... so, I placed an item on my doll. But when I press a button, the piece I placed in would disappear from the doll. I don't know how I'm going to work with it, like, I want that piece to "attatch" to my doll even when I press the buttons. Please help me, I'm so confused!!
👍: 0 ⏩: 1
Rose-Layon In reply to lampjelly [2008-11-29 16:54:42 +0000 UTC]
oh... It's been so long since you asked, I haven't had the time, I'm sorry : ( Are you still having trouble, or is it already solved?
Because I think I know what the problem is... The movie clips you made the clothing in have frame's for each colour. And you have to place the clothing at the position x:0 and y:0. So you probably did this for the first frame, but may have forgotten to do this for the other frames. So change the position to 0,0 and it should work
👍: 0 ⏩: 1
lampjelly In reply to Rose-Layon [2008-11-30 02:50:31 +0000 UTC]
Ah, it's ok. XD
I'm still having a problem though... where could I find the positions for x and y? I'm sorry, I really haven't picked-up that part...
👍: 0 ⏩: 1
Rose-Layon In reply to lampjelly [2008-11-30 15:20:24 +0000 UTC]
You can change the coordinates of the things you make in the property menu (usually at the bottom of the screen, you can also press Ctrl F3 to open it) At the left in the property menu you can see and change the x and y positions I talk about in the tutorial
👍: 0 ⏩: 1
lampjelly In reply to Rose-Layon [2008-12-01 00:37:35 +0000 UTC]
Ah, so that's it! XD I'm still a n00b alright,, but then, thanks for that! XDD It'll surely help!
👍: 0 ⏩: 1
Rose-Layon In reply to lampjelly [2008-12-01 20:07:50 +0000 UTC]
Your welcome
And we all got to start somewhere
Good luck whit your dress-up game
👍: 0 ⏩: 0
Desiree-Joy In reply to ??? [2008-10-07 15:28:20 +0000 UTC]
Thank you so much, that's exactly what i was looking for.
👍: 0 ⏩: 1
Rose-Layon In reply to Desiree-Joy [2008-10-19 10:42:31 +0000 UTC]
You're welcome
I'm glad you could use it
👍: 0 ⏩: 0
Princess-Peachie [2008-09-30 20:18:27 +0000 UTC]
AGH thank you so much!! YOU ARE A LIFESAVER!!
👍: 0 ⏩: 1
Princess-Peachie In reply to Princess-Peachie [2008-10-01 16:06:48 +0000 UTC]
Sorry I'm actually having trouble here. I've followed everything you've said but I get an error:
**Error** Scene=Scene 1, layer=hair 2, frame=1:Line 1: Statement must appear within on/onClipEvent handler
stop();
**Error** Scene=Scene 1, layer=hair 2, frame=1:Line 2: Statement must appear within on/onClipEvent handler
this.onPress = function() {
**Error** Scene=Scene 1, layer=hair 2, frame=1:Line 4: Statement must appear within on/onClipEvent handler
this.onRelease = function() {
Total ActionScript Errors: 3 Reported Errors: 3
But seriously, thank you so much for this script because once I know how to work it I can make more professional games!
👍: 0 ⏩: 1
Rose-Layon In reply to Princess-Peachie [2008-10-19 10:54:54 +0000 UTC]
Ah, I'm sorry you had to wait so long, I didn't have the time
Are you still having trouble? Maybe you could look at the conversation I had whit Shini-Sara, above of here, I think she had the same problem. Maybe you can find the answer in there. If not, feel free to ask me again, I think I'll reply faster next time
I'm glad you liked my tutorial and thank you for the
👍: 0 ⏩: 0
| Next =>