|
-
Need dress-up game tutorial (click and snap type)
I have found how to do this in AS 3.0 with the drag and drop method (though not sure how to make that snap), but am looking for a button based one that clicks and then appears at desired location. I know it's simple, but alas, I don't know quite how to do it - anyone can point me in the direction of a tutorial (for AS 3.0)?
I understand it probably requires setting up movie clips with multiple frames, each containing (for example) a different top, then having a button with a function that swaps between the frames in that movie clip.
My guess goes something like this:
button.addEventListener(MouseEvent.onClick, switchIt);
function switchIt(event:MouseEvent):void
{
gotoAndStop( ... ???? ....)
}
Not sure how to say "go to the first frame of shirt_mc" (or second frame or whatever). Also, I'm starting out with no shirt on at all, so I assume there would have to be a command to actually display the mc to begin with, as well as a function connected to the "reset_btn" that clears all the movieclips from the screen when player wants to start over.
Off to continue researching, but if anyone has an answer that won't take much of your time or a link to a tutorial, it would be much appreciated.
Last edited by Leftyplayer; 08-17-2009 at 07:03 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|