Need Help with coding in Actionscript 2 adobe flash cs3 professional
Copy link to clipboard
Copied
I'm trying to make a dress up game Somehow i want to make a button of a spray tan that when pressed shows a short animation of spraying the character with spray tan and then switching from the pale skin to tan. then some sort of button maybe some cream that when clicked shows a short animation of a dab dabbing on the character and then the character switches from tan to pale. MEANWHILE there's a bucket of water and when clicked a short animation plays of the bucket pouring water on her after the animation she switches to her mermaid form which can still switch from pale to tan mermaid via the above mentioned ideas. then to switch back to human you click a hair drier and when clicked a short animation played of the hair dryer blowing air to her then she goes back to human.
Meanwhile As for the hair there would be either an arrow button to switch through at least 7 hairdos (if i do that i need to learn how to loop them or just make room for a forward and back arrow) or different buttons for each hairdo (tho with that i need to find a way to stop the glitch that when you press a button that is already active it goes to another thing) MEANWHILE you can press a spray hair dye that when clicked shows a short animation of her being sprayed, and afterwards her hair is more of a golden blonde but in the same hair style chosen via the method above, and if you press Oh I don't know, say a bottle of hair restoration, it shows a short animation of her being sprayed and afterwards her hair is back to being super pale still in the same style as chosen
Meanwhile i need to learn how to make 2 items on 2 different layers to move together when dragged so say a hood can go over a head and the inside of the hood appears behind the head
I should probably add that i am a novice when it comes to flash i believe i know the basics and a few codes but i expect there is much i do not understand yet.
Copy link to clipboard
Copied
have you already made all those movieclip animations?
Copy link to clipboard
Copied
Not yet but i do know how to make them and i do have all graphics done.
Copy link to clipboard
Copied
add a stop() to frame 1 of each of your movieclips (and a stop() to the last frame if that's what you want).
then you could use something like the following for your spray tan (and likewise for the reset);
// if the object you want to click to start the spray tan animation if spray_tan_obj and the spray tan animation movieclip is spray_tan_mc (and those can be the same), use
spray_tan_obj.addEventListener(MouseEvent.CLICK,spray_tanF);
spray_tanF(e:MouseEvent):void{
spray_tan_mc.gotoAndPlay(1);
}
Copy link to clipboard
Copied
Its not really the animation i need help with, Its the switching between skin, i can make a button that when clicked goes to the tan skin, but to do so it goes to that specific tan so the problem is if another button is introduced that turns human to mermaid how can that spray tan effect the mermaid base as well? i would have to make a button that goes to the specific tan mermaid. But i want the button to turn the girl tan regardless of which form she is in. and i want it to remember what skin color it is in when it turns into the mermaid form of that color.
Same with the hair i want them to be able to click onto a certain hairdo and when a button is pressed all the hair choices change from pale to gold, so that if you pick a different hairdo its still in the golden selection and the hair chosen doesn't change to a different hairdo when you switch the color.
and i still need to make 2 items on 2 different levels move together when dragged or selected. like say there's a coat , if the bottom of the coat isn't on a different level then the top it will appear awkwardly in the front of the character. or with hair using buttons to select a certain hair if its on the mermaid form the hair that's behind the character will appear awkwardly on the front of her tail , so i had to make the hair in 2 pieces and i need to find a way for them to be selected at the same time by the button.
Also need to find a way to make hidden outfits appear by pressing buttons. its one thing to press a button to make one item appear but to make a set of say 5 or 6 items is new to me.
Copy link to clipboard
Copied
that's a design issue. you have to design your own app.
the two ways to do it would be to use the same tan features for mermaid and not-mermaid so the tan/non-tan would be a layer over the 2 models or create 4 models.
Copy link to clipboard
Copied
No Offence but you are really not being very helpful. i appreciate the earlier script. and with the images i have the tan base the pale base a pale mermaid base and tan mermaid base. i cant just make the tail a different part because they aren't shaped the same way, if the tail was onto you would see the legs underneath it.
Copy link to clipboard
Copied
apparently you don't like either of the two ways i suggested so maybe someone else can think of another way.
good luck.

