HOME | DD

Published: 2007-10-24 05:03:36 +0000 UTC; Views: 16719; Favourites: 197; Downloads: 327
Redirect to original
Description
This is probably past due for some, and I apologizeSeveral people have asked me about making a tutorial that changes the color of the dress up character with the push of a button. This tutorial will show you how to do that if you have a dress up already going but would like to add this feature.
This tutorial assumes you know how to create a dress up, and a little bit of actionscript too. It's very basic, it demonstrates how to add a button to a sample dressup. You can find the demo dressup here: [link]
For how to create a dressup, check out my basic dressup tutorial here: [link]
Hope this helps those who have been asking this for months.
This also required you to have Flash MX 2004.
Related content
Comments: 93
SkunkWaffle [2013-09-19 10:27:07 +0000 UTC]
How do you add the colour wheel itself in to the game?
👍: 0 ⏩: 0
ChaoticCinder [2013-03-31 13:39:41 +0000 UTC]
I decided to make a simple dress up using this code and everytime what I work whit it I always get two errors. Can do you help me please? This is the code:
stop();
ColorChange.onRelease = function() {
if (_currentFrame < _totalframes)
nextFrame();
else
gotoAndStop(1);
}
👍: 0 ⏩: 1
cianoir In reply to ChaoticCinder [2013-07-07 18:09:50 +0000 UTC]
I found your error, and I can help you!
Do this: Don't put "stop();" with "ColorChange.onRelease = function() {
if (_currentFrame < _totalframes)
nextFrame();
else
gotoAndStop(1);
}
" on the same action, to put "stop();" press f9, and to put "ColorChange.onRelease = function() {
if (_currentFrame < _totalframes)
nextFrame();
else
gotoAndStop(1);
}
" you can click the symbol with the right button on your mouse, and click in ACTION.
And Copy & paste the other code :3
👍: 0 ⏩: 1
Bubble-Tea-Chan [2011-10-22 22:52:41 +0000 UTC]
code?
can you paste it here because when i type it it gives me an error
👍: 0 ⏩: 0
AcidPaw [2010-10-10 01:39:14 +0000 UTC]
I tried it, and the button wont work :c
I don't know how to fix it either, I have tried in some hours now x3..
👍: 0 ⏩: 1
pichu90 In reply to AcidPaw [2010-10-10 06:13:02 +0000 UTC]
Are you getting an error message? Check that the names of the button and the code for the button handler are the same
👍: 0 ⏩: 1
AcidPaw In reply to pichu90 [2010-10-10 08:38:40 +0000 UTC]
I made it work because Im clever xD..
👍: 0 ⏩: 0
Liright [2010-08-31 06:58:58 +0000 UTC]
I got this to work the first time and when I tested my game again it had errors. D=
stop(); Statement must appear within on handler!
ColorChange.onRelease = function() { Statement must appear within on handler!
I have a newer version of Flash (CS4), but I'm using Actionscript 2.0, and it did work before.
All I did was add a couple more colours and two folders, but deleting them didn't change the error messages, and giving them OnEvents removed the errors but made the button useless.
Any ideas for what's wrong?
I like your tutorials, they're really easy to follow. Are you ever planning on making any others?
👍: 0 ⏩: 1
pichu90 In reply to Liright [2010-09-01 08:15:35 +0000 UTC]
You might have the code on the buttons instead of the frame, in which case you may want to move it to the frame and see if that works ^^
As for tutorials I do plan on some, the tough part is figuring out the best way to explain it in an easy manner so fellow deviants can understand ^^
👍: 0 ⏩: 0
athorment [2010-07-10 01:09:39 +0000 UTC]
Does it needs to leave spaces where the "else" part thing appears?
Oh and, can this be used to for example skip one frame and go to another scene?
👍: 0 ⏩: 0
Thilath [2010-04-09 00:49:17 +0000 UTC]
oh wow, thank you SO much for this ^ u^
I'm going to use this in my next dressup :3
maybe you could do a tutorial for how to have multiple colour change buttons? o .o
👍: 0 ⏩: 1
Thilath In reply to pichu90 [2010-04-09 13:26:24 +0000 UTC]
oh awesome I can't wait!
I'd love to know how to change hair, eye and skin colour all independently :3
👍: 0 ⏩: 0
garfield10125 [2009-12-04 05:38:40 +0000 UTC]
the button didn't work, but now the icing for my cookie changes colors on its own!!! i like it!!! the tutorial might not have worked out hoe i WANTED it to, but i like the way it is now better than what i wanted it to do. :3 thx!!!
👍: 0 ⏩: 0
iceytheglaceon [2009-09-23 21:19:24 +0000 UTC]
can u make a how to on how to make a play button?
👍: 0 ⏩: 0
MiniatureOwly [2009-08-22 09:59:21 +0000 UTC]
I did it right but when you press the button it goes through all the colors on one click! W
👍: 0 ⏩: 0
Dreams-Child [2009-01-04 23:46:26 +0000 UTC]
Heh, I retried it. Because, well, I swear I'm stupid. So I retried it to make sure I didn't do a stupid mistake ( Which is so like me Dx )
But it doesn't work. It used to say 'Error' and give me an error, but this time it doesn't. The buttons just don't work.
And the little demo one you made that you put at the end of your flash doesn't work for me either. Which made me sad. So I ask you again for help, for like, the fifty-billionth time xD
👍: 0 ⏩: 1
pichu90 In reply to Dreams-Child [2009-01-05 03:51:35 +0000 UTC]
Not sure why it doesn't work, do you have Flash MX?
👍: 0 ⏩: 0
Neikoish [2008-11-16 02:03:30 +0000 UTC]
Oh gosh, this helped so much! I was extremely happy that I was able to get it to work - thanks for posting this, I'll be sure to credit your tutorial when I'm finished with the dollmaker!
👍: 0 ⏩: 0
Dreams-Child [2008-11-06 02:55:20 +0000 UTC]
I has an error with the ' Colorchange.onRelease = function(){ ' part D=
And I tried the stop actionscript in another layer and it didn't work. I am not having luck with this D=
👍: 0 ⏩: 1
pichu90 In reply to Dreams-Child [2008-11-06 04:29:39 +0000 UTC]
Maybe a screenshot of your error?
👍: 0 ⏩: 0
CrystalClair [2008-09-27 21:24:47 +0000 UTC]
How do you make it so only one layer gets affected aka make multiple stuff change colors?
But thanks so much for doing this. I'll spread the word when I release my new Pokemon dressup game which may feature this if I master it.
👍: 0 ⏩: 1
pichu90 In reply to CrystalClair [2008-09-28 00:57:23 +0000 UTC]
Hmmm, for that first question I have to make tutorial and it's been a while since my last one so I can show you
👍: 0 ⏩: 0
zarimox [2008-09-24 03:34:01 +0000 UTC]
problem:
ColorChange.onRelease = function() {
Statement must appear within on handler
👍: 0 ⏩: 1
pichu90 In reply to zarimox [2008-09-24 05:04:44 +0000 UTC]
Make sure the actionscript appears on a separate layer and your Flash Player settings are 7.0 or higher.
👍: 0 ⏩: 0
pichu90 In reply to Kathrynthehedgehog [2008-07-18 02:04:52 +0000 UTC]
Sure, what is the question?
👍: 0 ⏩: 0
AznV [2008-03-02 17:23:22 +0000 UTC]
Nicwe x] DO you know how to change the colour to the clothes ?
👍: 0 ⏩: 1
pichu90 In reply to AznV [2008-03-02 23:20:41 +0000 UTC]
Yes, there's a tutorial in my gallery
👍: 0 ⏩: 1
Jiiojioppo [2008-02-10 16:18:26 +0000 UTC]
It's not working for me... Every time I preview my gane, the colors animate... can you mabye help me??
👍: 0 ⏩: 2
pichu90 In reply to Jiiojioppo [2008-02-11 00:55:27 +0000 UTC]
Try adding a new layer and put stop(); on the new layer, make sure it covers ALL frames.
👍: 0 ⏩: 1
Mouseychu In reply to Jiiojioppo [2008-02-10 18:24:16 +0000 UTC]
Ask me cause I did it!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
👍: 0 ⏩: 0
Mouseychu [2008-02-10 16:17:16 +0000 UTC]
I kinda lost you on step 2....Can you go a little more in-depth?
👍: 0 ⏩: 1
pichu90 In reply to Mouseychu [2008-02-11 00:57:38 +0000 UTC]
After you place your character in the dressup, add a frame. In the new frame just change the color of your character. Repeat by adding new frames and changing the colors until you have as many as you want.
👍: 0 ⏩: 0
ShilohInuYasha [2008-01-29 21:09:14 +0000 UTC]
I've been getting some errors... It might be my fault (For being the impatient person I am XD) but I have been getting errors about the actionscript and stuff...
👍: 0 ⏩: 1
pichu90 In reply to ShilohInuYasha [2008-01-30 04:07:16 +0000 UTC]
Any specific error in particular?
👍: 0 ⏩: 2
ShilohInuYasha In reply to pichu90 [2008-01-31 04:22:34 +0000 UTC]
Oh wait, I fixed the problem. X3 I put the actionscript on the button instead of the frame! How stupid of me! Hehehe... X3;;
Wel thank you for this lovely tutorial!! ^^ Now everytime I make a dress up that can change color, I will think of you. :3 (Of course, dress ups always remind me of you, my fave chu!)
👍: 0 ⏩: 1
ShilohInuYasha In reply to ShilohInuYasha [2008-01-31 04:23:16 +0000 UTC]
Oops. O.o I meant I put the script on the button instead of the layer! X3;;;
👍: 0 ⏩: 0
ShilohInuYasha In reply to pichu90 [2008-01-30 04:13:25 +0000 UTC]
Uhm. I'lll let you know next time I try. X3 It gave me 6, then I did something from one of the comments earlier, then it only had 2. So im'a see if I can fix it next time I try.
👍: 0 ⏩: 0
Luna-Minura [2008-01-26 00:44:16 +0000 UTC]
ZOMG! NEVER MIND! I GOT TROUG IT! I DID IT! I'M A HAPPY MUFFIN NOW!!!!!!
Thanks you thank you thank ypou for the awesomme Tutorial!
👍: 0 ⏩: 0
Luna-Minura [2008-01-26 00:26:34 +0000 UTC]
could you paste the color changin action script? please '^^
👍: 0 ⏩: 0
pichupet101 [2008-01-19 02:50:45 +0000 UTC]
The code doesn't work for me. D: It always says there's something wrong. The problem's always
Statement must appear within on handler
What does that mean luls?
👍: 0 ⏩: 1
pichu90 In reply to pichupet101 [2008-01-19 23:41:15 +0000 UTC]
You typed in the actionscript where it says Actions-Frame. You must erase the code there and click on the item so that it says Actions-Movie Clip on the bottom.
👍: 0 ⏩: 0
| Next =>